summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 658a7b0657..293ad355b8 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -113,7 +113,13 @@ class BBCooker:
113 113
114 bb.data.inheritFromOS(self.configuration.data) 114 bb.data.inheritFromOS(self.configuration.data)
115 115
116 self.parseConfigurationFiles(self.configuration.file) 116 try:
117 self.parseConfigurationFiles(self.configuration.file)
118 except SyntaxError:
119 sys.exit(1)
120 except Exception:
121 logger.exception("Error parsing configuration files")
122 sys.exit(1)
117 123
118 if not self.configuration.cmd: 124 if not self.configuration.cmd:
119 self.configuration.cmd = bb.data.getVar("BB_DEFAULT_TASK", self.configuration.data, True) or "build" 125 self.configuration.cmd = bb.data.getVar("BB_DEFAULT_TASK", self.configuration.data, True) or "build"