From: zmedico Date: Sun, 14 Dec 2008 04:08:42 +0000 (-0000) Subject: When calling sys.exit() inside die(), don't make the value negative since X-Git-Tag: gentoolkit-0.2.4.3^2~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4ca5589c76e4d86e8f9fdbd88836d3fe9274bb69;p=gentoolkit.git When calling sys.exit() inside die(), don't make the value negative since it seems to be unintended (callers all pass in positive values). Thanks to DJ Anderson for reporting. svn path=/; revision=529 --- diff --git a/trunk/src/gentoolkit/pprinter.py b/trunk/src/gentoolkit/pprinter.py index 39665f8..ff92a26 100644 --- a/trunk/src/gentoolkit/pprinter.py +++ b/trunk/src/gentoolkit/pprinter.py @@ -33,7 +33,7 @@ def print_warn(s): def die(err, s): """Print an error string and die with an error code.""" print_error(s) - sys.exit(-err) + sys.exit(err) # Colour settings