print an error saying what target failed before the traceback
authorAndrew Gaffney <agaffney@gentoo.org>
Thu, 11 Oct 2007 22:54:02 +0000 (22:54 +0000)
committerAndrew Gaffney <agaffney@gentoo.org>
Thu, 11 Oct 2007 22:54:02 +0000 (22:54 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1246 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
catalyst

index c0416c18c9b8d7a9c18101143d883b10213d1c7c..5e7e265fda0b4ce995b2f7619a473684d38cdd8c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
 # $Id: $
 
+  11 Oct 2007; Andrew Gaffney <agaffney@gentoo.org> catalyst:
+  print an error saying what target failed before the traceback
+
   25 Sep 2007; Andrew Gaffney <agaffney@gentoo.org>
   modules/catalyst_support.py:
   when parsing make.conf, first try pkgcore's
index 957b186cdc53a823207065a87d4919cfcb518648..6a6421fb07378c52b285031163d9419724fd1f4e 100755 (executable)
--- 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__":