From 1acb9c338018c612db519d2db823c66b567863b9 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Tue, 7 May 2013 11:22:37 +0200 Subject: pysh: Say what kind of token isn't implemented When the shell lexer finds an unrecognized dollar token, the error message should contain what kind of token it is having problems with. Signed-off-by: Olof Johansson Signed-off-by: Richard Purdie --- lib/bb/pysh/pyshlex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bb/pysh') diff --git a/lib/bb/pysh/pyshlex.py b/lib/bb/pysh/pyshlex.py index b977b5e869..b30123675c 100644 --- a/lib/bb/pysh/pyshlex.py +++ b/lib/bb/pysh/pyshlex.py @@ -292,7 +292,7 @@ class WordLexer: elif sep=='${': parsefunc = self._parse_parameter else: - raise NotImplementedError() + raise NotImplementedError(sep) pos, closed = parsefunc(buf, result, eof) return pos, closed -- cgit 1.2.3-korg