summaryrefslogtreecommitdiffstats
path: root/bin/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bitbake')
-rwxr-xr-xbin/bitbake6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/bitbake b/bin/bitbake
index b281c2a30..d87a9223b 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -58,7 +58,11 @@ class BBConfiguration(object):
def print_exception(*exc_info):
- logger.error("Uncaught exception: ", exc_info=exc_info)
+ if not isinstance(exc_info[0], SystemExit):
+ if isinstance(exc_info[0], KeyboardInterrupt):
+ logger.error("User aborted.")
+ else:
+ logger.error("Uncaught exception: ", exc_info=exc_info)
sys.exit(1)
sys.excepthook = print_exception