From 3291c150df8cd5f39cf569727f61825a902360fa Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Thu, 11 Oct 2007 22:54:02 +0000 Subject: [PATCH] print an error saying what target failed before the traceback git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1246 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 3 +++ catalyst | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index c0416c18..5e7e265f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 # $Id: $ + 11 Oct 2007; Andrew Gaffney catalyst: + print an error saying what target failed before the traceback + 25 Sep 2007; Andrew Gaffney modules/catalyst_support.py: when parsing make.conf, first try pkgcore's diff --git a/catalyst b/catalyst index 957b186c..6a6421fb 100755 --- a/catalyst +++ b/catalyst @@ -202,6 +202,8 @@ def build_target(addlargs, targetmap): mytarget.run() except: + # TODO: Capture traceback, so we can display this error after printing of the traceback + print "!!! catalyst: Error encountered during run of target " + addlargs["target"] raise if __name__ == "__main__": -- 2.26.2