bitbake: pysh: Say what kind of token isn't implemented
authorOlof Johansson <olof.johansson@axis.com>
Tue, 7 May 2013 09:22:37 +0000 (11:22 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 May 2013 12:35:10 +0000 (13:35 +0100)
When the shell lexer finds an unrecognized dollar token, the error
message should contain what kind of token it is having problems with.

(Bitbake rev: 1acb9c338018c612db519d2db823c66b567863b9)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/pysh/pyshlex.py

index b977b5e..b301236 100644 (file)
@@ -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