summaryrefslogtreecommitdiffstats
path: root/lib/bb/msg.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-06-08 17:03:34 -0700
committerChris Larson <chris_larson@mentor.com>2010-06-08 17:03:34 -0700
commit2b64afa107dc24db510d0001b6eb58f0d5913d2f (patch)
tree7455798f49f890a002f7db6ad52ae62cd9b947e9 /lib/bb/msg.py
parent36b980c16bf74b3c2066cc120f9f27e11f189a63 (diff)
downloadbitbake-2b64afa107dc24db510d0001b6eb58f0d5913d2f.tar.gz
Fix the silent exit when the specified task doesn't exist
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/msg.py')
-rw-r--r--lib/bb/msg.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/bb/msg.py b/lib/bb/msg.py
index 0d90f959d..cea5efb5a 100644
--- a/lib/bb/msg.py
+++ b/lib/bb/msg.py
@@ -128,13 +128,11 @@ def warn(msgdomain, msg, fn = None):
def error(msgdomain, msg, fn = None):
bb.event.fire(MsgError(msg), None)
- if not bb.event._ui_handlers:
- print('ERROR: ' + msg)
+ print 'ERROR: ' + msg
def fatal(msgdomain, msg, fn = None):
bb.event.fire(MsgFatal(msg), None)
- if not bb.event._ui_handlers:
- print('FATAL: ' + msg)
+ print('FATAL: ' + msg)
sys.exit(1)
def plain(msg, fn = None):