* return the right error code
authorNathan Letwory <nathan@letworyinteractive.com>
Thu, 2 Oct 2008 08:46:04 +0000 (08:46 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Thu, 2 Oct 2008 08:46:04 +0000 (08:46 +0000)
* print error message when something goes wrong with nsis installer creation

tools/btools.py

index f094cfbd5509ea65d35b81376bf36a96dda27561..58b667b486f4e208ed1a155615b50f228b0088d4 100755 (executable)
@@ -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