From: Andrew Gaffney Date: Sun, 11 Jan 2009 03:08:31 +0000 (-0600) Subject: Allow build_target() to re-raise the exception for the top-level handler to catch it X-Git-Tag: CATALYST-2.0.10~3^2~223 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e113da0a0a1737fc51847ba8224ed72c93cf4683;p=catalyst.git Allow build_target() to re-raise the exception for the top-level handler to catch it --- diff --git a/ChangeLog b/ChangeLog index 40ea8ca1..2732acfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ # Copyright 2002-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS) # Distributed under the GPL v2 + 11 Jan 2009; Andrew Gaffney catalyst: + Allow build_target() to re-raise the exception for the top-level handler + to catch it + 11 Jan 2009; Andrew Gaffney catalyst: Move catalyst.support import to top of file diff --git a/catalyst b/catalyst index 97d407f0..a1e19cf8 100755 --- a/catalyst +++ b/catalyst @@ -179,7 +179,8 @@ def build_target(addlargs, targetmap): except: catalyst.util.print_traceback() print "!!! catalyst: Error encountered during run of target " + addlargs["target"] - sys.exit(1) +# sys.exit(1) + raise if __name__ == "__main__":