summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bitbake-dev/lib/bb/build.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake-dev/lib/bb/build.py b/bitbake-dev/lib/bb/build.py
index b8abe6d1b..7974a8248 100644
--- a/bitbake-dev/lib/bb/build.py
+++ b/bitbake-dev/lib/bb/build.py
@@ -204,8 +204,11 @@ def exec_func_python(func, d, runfile, logfile):
g['bb'] = bb
g['os'] = os
g['d'] = d
- utils.better_exec(comp, g, tmp, bbfile)
-
+ try:
+ utils.better_exec(comp, g, tmp, bbfile)
+ except:
+ bb.msg.error(bb.msg.domain.Build, "Function %s failed" % func)
+ raise FuncFailed("function %s failed" % func, logfile)
def exec_func_shell(func, d, runfile, logfile, flags):
"""Execute a shell BB 'function' Returns true if execution was successful.