summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-05-06 07:15:34 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-08 20:38:25 +0100
commite12105474017262d176dbaaecdc3f90f155aa8df (patch)
tree37321dee5c87f859596b116eef15ba665eb1bd07 /bitbake/lib
parent97504f2bc865c3c2dc94fb8bdd3d2e3a027647dd (diff)
downloadast2050-yocto-poky-e12105474017262d176dbaaecdc3f90f155aa8df.zip
ast2050-yocto-poky-e12105474017262d176dbaaecdc3f90f155aa8df.tar.gz
cooker: don't show a useless traceback for SyntaxError
Note: we rely on the fact that better_compile has already output information about the exception, so don't do it ourselves. (Bitbake rev: caf21e9fbf3c526c1d7c555d8c76dca8710f9def) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cooker.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 293ad35..f483650 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1227,7 +1227,10 @@ class CookerParser(object):
self.shutdown(clean=False)
bb.fatal('Error parsing %s: %s' %
(exc.recipe, bb.exceptions.to_string(exc.realexception)))
- except Exception:
+ except SyntaxError as exc:
+ logger.error('Unable to parse %s', exc.recipe)
+ sys.exit(1)
+ except Exception as exc:
import traceback
etype, value, tb = sys.exc_info()
formatted = bb.exceptions.format_extracted(value.traceback, limit=5)
OpenPOWER on IntegriCloud