From 3beecc66e9aeabc515ecf683089b2de6765d784e Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 8 Jun 2010 17:03:34 -0700 Subject: Fix the silent exit when the specified task doesn't exist (Bitbake rev: 2b64afa107dc24db510d0001b6eb58f0d5913d2f) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/msg.py | 6 ++---- 1 file 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): -- cgit v1.2.3