summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/cooker.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 5b76b4d20d..219c79ec69 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -2147,8 +2147,11 @@ class CookerParser(object):
2147 return False 2147 return False
2148 except bb.data_smart.ExpansionError as exc: 2148 except bb.data_smart.ExpansionError as exc:
2149 self.error += 1 2149 self.error += 1
2150 _, value, _ = sys.exc_info() 2150 bbdir = os.path.dirname(__file__) + os.sep
2151 logger.error('ExpansionError during parsing %s: %s', value.recipe, str(exc)) 2151 etype, value, _ = sys.exc_info()
2152 tb = list(itertools.dropwhile(lambda e: e.filename.startswith(bbdir), exc.traceback))
2153 logger.error('ExpansionError during parsing %s', value.recipe,
2154 exc_info=(etype, value, tb))
2152 self.shutdown(clean=False) 2155 self.shutdown(clean=False)
2153 return False 2156 return False
2154 except Exception as exc: 2157 except Exception as exc: