summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2007-07-25 17:34:35 +0000
committerPeter Jones <pjones@redhat.com>2007-07-25 17:34:35 +0000
commite96e7c38335e8113ac82554306933e0091871895 (patch)
treebb2d5a38b7a62a27d35d5380c0d57d4cbf6cbeaf /iutil.py
parent9e9ada3c2c981f8ac13cc67c0dae47605090f026 (diff)
downloadanaconda-e96e7c38335e8113ac82554306933e0091871895.tar.gz
anaconda-e96e7c38335e8113ac82554306933e0091871895.tar.xz
anaconda-e96e7c38335e8113ac82554306933e0091871895.zip
- fix error reporting in execWithRedirect
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/iutil.py b/iutil.py
index 2e6a5ea7f..824311157 100644
--- a/iutil.py
+++ b/iutil.py
@@ -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