From 88a7b041fbf2583472aa9408a33dd8881223a0c1 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Tue, 7 May 2013 11:22:37 +0200 Subject: [PATCH] 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/pysh/pyshlex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: elif sep=='${': parsefunc = self._parse_parameter else: - raise NotImplementedError() + raise NotImplementedError(sep) pos, closed = parsefunc(buf, result, eof) return pos, closed