summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parent9bc886b25b7869654bed0495e1fdd824515e2af2 (diff)
downloadranger-a5737effc280565ed8530c453ceea6ddc126f839.tar.gz
widgets.console: more detailed error message when command not found
Diffstat (limited to 'ranger')
-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:
5:04 +0100 committer hut <hut@lavabit.com> 2009-12-25 21:55:04 +0100 updated pydoc pages' href='/akspecs/ranger/commit/doc/ranger.defaults.html?h=v1.9.0b5&id=f07bb12fc5c59430e995a64956b36331ce3629b9'>f07bb12f ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25