diff options
author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-01-25 15:20:08 -0800 |
---|---|---|
committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-01-25 15:20:08 -0800 |
commit | 34eae5738c1f4ab0eddc469309ae0cbbd5346c4e (patch) | |
tree | eea6dc3ab8a18c04e2b3923674d2ec1aef85bb6a /nova/exception.py | |
parent | 10e22fac85e0684a12325aa987fb6d5c3450bf93 (diff) | |
parent | 7614c02e9a31bfbdc9cc52e42b438848eec6af58 (diff) | |
download | nova-34eae5738c1f4ab0eddc469309ae0cbbd5346c4e.tar.gz nova-34eae5738c1f4ab0eddc469309ae0cbbd5346c4e.tar.xz nova-34eae5738c1f4ab0eddc469309ae0cbbd5346c4e.zip |
merged trunk
Diffstat (limited to 'nova/exception.py')
-rw-r--r-- | nova/exception.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/exception.py b/nova/exception.py index f36ffaee1..f604fd63a 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -33,8 +33,9 @@ class ProcessExecutionError(IOError): description = _("Unexpected error while running command.") if exit_code is None: exit_code = '-' - message = _("%s\nCommand: %s\nExit code: %s\nStdout: %r\nStderr: %r")\ - % (description, cmd, exit_code, stdout, stderr) + message = _("%(description)s\nCommand: %(cmd)s\n" + "Exit code: %(exit_code)s\nStdout: %(stdout)r\n" + "Stderr: %(stderr)r") % locals() IOError.__init__(self, message) |