bitbake: 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.

(Bitbake rev: 1acb9c338018c612db519d2db823c66b567863b9)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Olof Johansson 2013-05-07 11:22:37 +02:00 committed by Richard Purdie
parent d98419ae70
commit 88a7b041fb
1 changed files with 1 additions and 1 deletions

View 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