diff options
-rw-r--r-- | src/py-libs/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/py-libs/util.py b/src/py-libs/util.py index 6c4481f..b47f57c 100644 --- a/src/py-libs/util.py +++ b/src/py-libs/util.py @@ -255,9 +255,9 @@ def do(command, chrootPath=None, timeout=0, raiseExc=True, returnOutput=0, uidMa # mask and return just return value, plus child output if raiseExc and os.WEXITSTATUS(ret): if returnOutput: - raise mock.exception.Error, "Command(%s) failed. Output: %s" % (command, output) + raise mock.exception.Error, "Command failed: \n # %s\n%s" % (command, output) else: - raise mock.exception.Error, "Command(%s) failed. See logs for output." % command + raise mock.exception.Error, "Command failed. See logs for output.\n # %s" % command return output |