From a14a75504a5f0ddb82f36c3dbb3a50ef22e54c65 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Wed, 15 Apr 2015 18:00:47 +0200 Subject: improve the error output of pyside_postinstall, see issue #42 Change-Id: If9341948d5187214d832669d7e27523bc7663710 --- pyside_postinstall.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyside_postinstall.py b/pyside_postinstall.py index 9230a55ad..125fbd3fb 100644 --- a/pyside_postinstall.py +++ b/pyside_postinstall.py @@ -50,12 +50,14 @@ def back_tick(cmd, ret_err=False): if not isinstance(out, str): # python 3 out = out.decode() + err = err.decode() retcode = proc.returncode if retcode is None: proc.terminate() raise RuntimeError(cmd + ' process did not terminate') if retcode != 0: - raise RuntimeError(cmd + ' process returned code %d' % retcode) + raise RuntimeError(cmd + ' process returned code %d\n*** %s' % + (retcode, err)) out = out.strip() if not ret_err: return out -- cgit v1.2.3