[bitbake-devel] [WIP 1/2] pysh: Say what kind of token isn't implemented
Olof Johansson
olof.johansson at axis.com
Tue May 7 09:22:37 UTC 2013
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 at axis.com>
---
lib/bb/pysh/pyshlex.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/pysh/pyshlex.py b/lib/bb/pysh/pyshlex.py
index b977b5e..b301236 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
--
1.7.10.4
More information about the bitbake-devel
mailing list