diff options
-rw-r--r-- | lib/bb/cooker.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 01e6c160b..5d2f2a88e 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1127,6 +1127,8 @@ class CookerParser(object): self.shutdown(clean=False) bb.fatal('Error parsing %s: %s' % (exc.recipe, bb.exceptions.to_string(exc.realexception))) + except bb.parse.ParseError as exc: + bb.fatal(str(exc)) except SyntaxError as exc: logger.error('Unable to parse %s', exc.recipe) sys.exit(1) |