summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorEd Leafe <ed@leafe.com>2011-01-18 21:00:28 -0500
committerEd Leafe <ed@leafe.com>2011-01-18 21:00:28 -0500
commit68c9c8930038fe3af3092f3de75591146d57c9e4 (patch)
tree19d32318b52131274bac3d551bfa3bc63af36cd8 /nova/exception.py
parent8e6684a58eea3ecacdde99e1940d2ae351b8465c (diff)
downloadnova-68c9c8930038fe3af3092f3de75591146d57c9e4.tar.gz
nova-68c9c8930038fe3af3092f3de75591146d57c9e4.tar.xz
nova-68c9c8930038fe3af3092f3de75591146d57c9e4.zip
Completed first pass at converting all localized strings with multiple format substitutions.
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/exception.py b/nova/exception.py
index ecd814e5d..2320e2214 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)