From e113da0a0a1737fc51847ba8224ed72c93cf4683 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sat, 10 Jan 2009 21:08:31 -0600 Subject: [PATCH] Allow build_target() to re-raise the exception for the top-level handler to catch it --- ChangeLog | 4 ++++ catalyst | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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__": -- 2.26.2