summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-01 16:59:07 +0200
committerhut <hut@lavabit.com>2011-10-01 16:59:07 +0200
commita5737effc280565ed8530c453ceea6ddc126f839 (patch)
treeb9899947af05c7ea59bf0c918762dde65e7f7625
parent9bc886b25b7869654bed0495e1fdd824515e2af2 (diff)
downloadranger-a5737effc280565ed8530c453ceea6ddc126f839.tar.gz
widgets.console: more detailed error message when command not found
-rw-r--r--ranger/gui/widgets/console.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 92983da6..ecf6f557 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -305,7 +305,8 @@ class Console(Widget):
 			command_class = self._get_cmd_class()
 		except KeyError:
 			if not quiet:
-				self.fm.notify("Invalid command! Press ? for help.", bad=True)
+				error = "Command not found: `%s'" % self.line.split()[0]
+				self.fm.notify(error, bad=True)
 		except:
 			return None
 		else: