summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-05-06 02:21:12 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-08 19:38:24 (GMT)
commit97504f2bc865c3c2dc94fb8bdd3d2e3a027647dd (patch)
tree898514fa2787132d26dd6687d4ac5a593d2634ab /bitbake
parent1749a73669b9f119050c32253a00aa618af6abd1 (diff)
downloadpoky-97504f2bc865c3c2dc94fb8bdd3d2e3a027647dd.tar.gz
cooker: use logger.exception for config file parse errors
(Bitbake rev: 775590c154bc189df3f5704bddf9b684b734fde0) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-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 658a7b0..293ad35 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"