summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/msg.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-06-08 17:03:34 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:35 +0100
commit3beecc66e9aeabc515ecf683089b2de6765d784e (patch)
treee38b718904c8d4fa4efe5e1496a4d4479177f153 /bitbake/lib/bb/msg.py
parent7e53a3b5cff3599753d0729a488eb393b341da32 (diff)
downloadopenembedded-core-3beecc66e9aeabc515ecf683089b2de6765d784e.tar.gz
openembedded-core-3beecc66e9aeabc515ecf683089b2de6765d784e.tar.bz2
openembedded-core-3beecc66e9aeabc515ecf683089b2de6765d784e.zip
Fix the silent exit when the specified task doesn't exist
(Bitbake rev: 2b64afa107dc24db510d0001b6eb58f0d5913d2f) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/msg.py')
-rw-r--r--bitbake/lib/bb/msg.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py
index 0d90f959d3..cea5efb5a4 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/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):