summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorjaypipes@gmail.com <>2010-12-11 15:23:40 -0500
committerjaypipes@gmail.com <>2010-12-11 15:23:40 -0500
commit12802a76c775a35e9d5a651bf896cfa25bec547f (patch)
tree8c4411a54ef3a8cabc57a51dd930bd8d6683967a /nova/exception.py
parenta6645d8a431ed933eef4ea6c42c0224ead6f2272 (diff)
downloadnova-12802a76c775a35e9d5a651bf896cfa25bec547f.tar.gz
nova-12802a76c775a35e9d5a651bf896cfa25bec547f.tar.xz
nova-12802a76c775a35e9d5a651bf896cfa25bec547f.zip
First round of i18n-ifying strings in Nova
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 6d6c37338..fd8b00368 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -30,11 +30,11 @@ class ProcessExecutionError(IOError):
def __init__(self, stdout=None, stderr=None, exit_code=None, cmd=None,
description=None):
if description is None:
- description = "Unexpected error while running command."
+ 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 = _("%s\nCommand: %s\nExit code: %s\nStdout: %r\nStderr: %r")\
+ % (description, cmd, exit_code, stdout, stderr)
IOError.__init__(self, message)
@@ -81,7 +81,7 @@ def wrap_exception(f):
except Exception, e:
if not isinstance(e, Error):
#exc_type, exc_value, exc_traceback = sys.exc_info()
- logging.exception('Uncaught exception')
+ logging.exception(_('Uncaught exception'))
#logging.error(traceback.extract_stack(exc_traceback))
raise Error(str(e))
raise