summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorOlof Johansson <olof.johansson@axis.com>2013-05-07 11:22:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-10 13:35:10 +0100
commit88a7b041fbf2583472aa9408a33dd8881223a0c1 (patch)
tree1517b821b4b7f674d6707ce1ef3e22c906db9085 /bitbake
parentd98419ae706c33f2d031598cb0914616bc7dfaa0 (diff)
downloadpoky-88a7b041fbf2583472aa9408a33dd8881223a0c1.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/pysh/pyshlex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/pysh/pyshlex.py b/bitbake/lib/bb/pysh/pyshlex.py
index b977b5e869..b30123675c 100644
--- a/bitbake/lib/bb/pysh/pyshlex.py
+++ b/bitbake/lib/bb/pysh/pyshlex.py
@@ -292,7 +292,7 @@ class WordLexer:
292 elif sep=='${': 292 elif sep=='${':
293 parsefunc = self._parse_parameter 293 parsefunc = self._parse_parameter
294 else: 294 else:
295 raise NotImplementedError() 295 raise NotImplementedError(sep)
296 296
297 pos, closed = parsefunc(buf, result, eof) 297 pos, closed = parsefunc(buf, result, eof)
298 return pos, closed 298 return pos, closed