about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xranger/ext/rifle.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py
index 3d7b6261..f475ae9f 100755
--- a/ranger/ext/rifle.py
+++ b/ranger/ext/rifle.py
@@ -264,7 +264,10 @@ class Rifle(object):
 		# Execute command
 		if command is None:
 			if found_at_least_one:
-				self.hook_logger("Method number %d is undefined." % number)
+				if label:
+					self.hook_logger("Label '%s' is undefined" % label)
+				else:
+					self.hook_logger("Method number %d is undefined." % number)
 			else:
 				self.hook_logger("No action found.")
 		else: