diff options
author | hut <hut@lavabit.com> | 2012-03-21 18:40:06 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-03-21 18:40:06 +0100 |
commit | ddefc64231f80c4f441bbdb593936c22270aa5e1 (patch) | |
tree | 9f8f7b952893310fb5dc7ecd2e11345c18aa58d7 /ranger | |
parent | 26e2fcc7be2b3911f1fe2929dbbb80e43c27d11f (diff) | |
download | ranger-ddefc64231f80c4f441bbdb593936c22270aa5e1.tar.gz |
ext.rifle: improved error messages
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/ext/rifle.py | 5 |
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: |