summaryrefslogtreecommitdiffstats
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)
downloadpoky-3beecc66e9aeabc515ecf683089b2de6765d784e.tar.gz
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):
128 128
129def error(msgdomain, msg, fn = None): 129def error(msgdomain, msg, fn = None):
130 bb.event.fire(MsgError(msg), None) 130 bb.event.fire(MsgError(msg), None)
131 if not bb.event._ui_handlers: 131 print 'ERROR: ' + msg
132 print('ERROR: ' + msg)
133 132
134def fatal(msgdomain, msg, fn = None): 133def fatal(msgdomain, msg, fn = None):
135 bb.event.fire(MsgFatal(msg), None) 134 bb.event.fire(MsgFatal(msg), None)
136 if not bb.event._ui_handlers: 135 print('FATAL: ' + msg)
137 print('FATAL: ' + msg)
138 sys.exit(1) 136 sys.exit(1)
139 137
140def plain(msg, fn = None): 138def plain(msg, fn = None):