about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-03-21 18:40:06 +0100
committerhut <hut@lavabit.com>2012-03-21 18:40:06 +0100
commitddefc64231f80c4f441bbdb593936c22270aa5e1 (patch)
tree9f8f7b952893310fb5dc7ecd2e11345c18aa58d7 /ranger
parent26e2fcc7be2b3911f1fe2929dbbb80e43c27d11f (diff)
downloadranger-ddefc64231f80c4f441bbdb593936c22270aa5e1.tar.gz
ext.rifle: improved error messages
Diffstat (limited to 'ranger')
-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: