From 7ba46c70ad377bad7c623acadbf006a9ddbe682b Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Thu, 2 Oct 2008 08:46:04 +0000 Subject: * return the right error code * print error message when something goes wrong with nsis installer creation --- tools/btools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/btools.py') diff --git a/tools/btools.py b/tools/btools.py index f094cfbd550..58b667b486f 100755 --- a/tools/btools.py +++ b/tools/btools.py @@ -531,5 +531,8 @@ def NSIS_Installer(target=None, source=None, env=None): data, err = proc.communicate() rv = proc.wait() - return err + if rv != 0: + print + print data.strip().split("\n")[-1] + return rv -- cgit v1.2.3