summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bb/cooker.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index b30945c4b..928b6009a 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1657,9 +1657,13 @@ class CookerParser(object):
logger.error('Unable to parse %s: %s' %
(exc.recipe, bb.exceptions.to_string(exc.realexception)))
self.shutdown(clean=False)
- except (bb.parse.ParseError, bb.data_smart.ExpansionError) as exc:
+ except bb.parse.ParseError as exc:
logger.error(str(exc))
self.shutdown(clean=False)
+ except bb.data_smart.ExpansionError as exc:
+ _, value, _ = sys.exc_info()
+ logger.error('ExpansionError during parsing %s: %s', value.recipe, str(exc))
+ self.shutdown(clean=False)
except SyntaxError as exc:
logger.error('Unable to parse %s', exc.recipe)
self.shutdown(clean=False)