From fb1288ba5727674c74597514b8e4906fe1117cf5 Mon Sep 17 00:00:00 2001 From: Michael 'Mickey' Lauer Date: Sat, 13 Mar 2004 13:45:16 +0000 Subject: [PATCH] give a reason when a task fails --- bin/oe/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/oe/build.py b/bin/oe/build.py index 8c1a024..53073af 100644 --- a/bin/oe/build.py +++ b/bin/oe/build.py @@ -258,7 +258,8 @@ def exec_task(task, d): exec_func(item, d) event.fire(TaskSucceeded(item, d)) task_cache.append(item) - except FuncFailed: + except FuncFailed, reason: + note( "Task failed: %s" % reason ) failedevent = TaskFailed(item, d) event.fire(failedevent) raise EventException(None, failedevent) -- 2.7.4