diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index f9ee4f1c1d..560f55a074 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py @@ -354,6 +354,9 @@ def better_exec(code, context, text = None, realfile = ""): code = better_compile(code, realfile, realfile) try: exec(code, get_context(), context) + except bb.BBHandledException: + # Error already shown so passthrough + raise except Exception as e: (t, value, tb) = sys.exc_info()