diff options
author | Christian Tismer <tismer@stackless.com> | 2015-04-15 18:00:47 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2015-04-15 18:00:47 +0200 |
commit | a14a75504a5f0ddb82f36c3dbb3a50ef22e54c65 (patch) | |
tree | c62d7f2acc62543cc0f3a4dadf25929a9af0924b | |
parent | 62d61d967e9375dc19b945d965eb7b331bd13adf (diff) |
improve the error output of pyside_postinstall, see issue #42
Change-Id: If9341948d5187214d832669d7e27523bc7663710
-rw-r--r-- | pyside_postinstall.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |