diff options
| -rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index f706b9759d..35590a2a79 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
| @@ -405,8 +405,9 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
| 405 | 405 | ||
| 406 | if isinstance(event, bb.command.CommandFailed): | 406 | if isinstance(event, bb.command.CommandFailed): |
| 407 | return_value = event.exitcode | 407 | return_value = event.exitcode |
| 408 | errors = errors + 1 | 408 | if event.error: |
| 409 | logger.error("Command execution failed: %s", event.error) | 409 | errors = errors + 1 |
| 410 | logger.error("Command execution failed: %s", event.error) | ||
| 410 | main.shutdown = 2 | 411 | main.shutdown = 2 |
| 411 | continue | 412 | continue |
| 412 | if isinstance(event, bb.command.CommandExit): | 413 | if isinstance(event, bb.command.CommandExit): |
| @@ -520,7 +521,7 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
| 520 | if warnings: | 521 | if warnings: |
| 521 | summary += pluralise("\nSummary: There was %s WARNING message shown.", | 522 | summary += pluralise("\nSummary: There was %s WARNING message shown.", |
| 522 | "\nSummary: There were %s WARNING messages shown.", warnings) | 523 | "\nSummary: There were %s WARNING messages shown.", warnings) |
| 523 | if return_value: | 524 | if return_value and errors: |
| 524 | summary += pluralise("\nSummary: There was %s ERROR message shown, returning a non-zero exit code.", | 525 | summary += pluralise("\nSummary: There was %s ERROR message shown, returning a non-zero exit code.", |
| 525 | "\nSummary: There were %s ERROR messages shown, returning a non-zero exit code.", errors) | 526 | "\nSummary: There were %s ERROR messages shown, returning a non-zero exit code.", errors) |
| 526 | if summary: | 527 | if summary: |
