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>
This commit is contained in:
Chris Larson 2010-06-08 17:03:34 -07:00 committed by Richard Purdie
parent 7e53a3b5cf
commit 3beecc66e9
1 changed files with 2 additions and 4 deletions

View File

@ -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):