diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-05-05 19:21:12 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 20:38:24 +0100 |
commit | 97504f2bc865c3c2dc94fb8bdd3d2e3a027647dd (patch) | |
tree | 898514fa2787132d26dd6687d4ac5a593d2634ab /bitbake/lib/bb/cooker.py | |
parent | 1749a73669b9f119050c32253a00aa618af6abd1 (diff) | |
download | poky-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/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 8 |
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" |