aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/pysh
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:33:58 +0100
commit1acb9c338018c612db519d2db823c66b567863b9 (patch)
treef835d1a3823415b10d6af8608246370d83f57a13 /lib/bb/pysh
parent4d6d02e61b32d1d710c708774f08cc5e7764415d (diff)
downloadbitbake-1acb9c338018c612db519d2db823c66b567863b9.tar.gz
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 <olof.johansson@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/pysh')
-rw-r--r--lib/bb/pysh/pyshlex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/pysh/pyshlex.py b/lib/bb/pysh/pyshlex.py
index b977b5e86..b30123675 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