summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/toasterui.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/toasterui.py')
-rw-r--r--bitbake/lib/bb/ui/toasterui.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index d2dba256c4..8e30a91109 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/lib/bb/ui/toasterui.py
@@ -217,6 +217,13 @@ def main(server, eventHandler, params ):
if isinstance(event, (bb.command.CommandCompleted,
bb.command.CommandFailed,
bb.command.CommandExit)):
+ if (isinstance(event, bb.command.CommandFailed)):
+ event.levelno = format.ERROR
+ event.msg = event.error
+ event.pathname = ""
+ event.lineno = 0
+ buildinfohelper.store_log_event(event)
+ errors += 1
buildinfohelper.update_build_information(event, errors, warnings, taskfailures)