diff options
author | Peter Jones <pjones@redhat.com> | 2007-07-25 17:34:35 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2007-07-25 17:34:35 +0000 |
commit | e96e7c38335e8113ac82554306933e0091871895 (patch) | |
tree | bb2d5a38b7a62a27d35d5380c0d57d4cbf6cbeaf /iutil.py | |
parent | 9e9ada3c2c981f8ac13cc67c0dae47605090f026 (diff) | |
download | anaconda-e96e7c38335e8113ac82554306933e0091871895.tar.gz anaconda-e96e7c38335e8113ac82554306933e0091871895.tar.xz anaconda-e96e7c38335e8113ac82554306933e0091871895.zip |
- fix error reporting in execWithRedirect
Diffstat (limited to 'iutil.py')
-rw-r--r-- | iutil.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -48,8 +48,9 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2, stderr=stderr, preexec_fn=chroot, cwd=root) ret = proc.wait() except OSError, (errno, msg): - log.error ("Error running " + command + ": " + msg) - raise RuntimeError, "Error running " + command + ": " + msg + errstr = "Error running %s: %s" % (command, msg) + log.error (errstr) + raise RuntimeError, errstr return ret |