~nova-coresec/nova/bexar-translations

« back to all changes in this revision

Viewing changes to nova/exception.py

  • Committer: Ed Leafe
  • Date: 2011-01-19 02:00:28 UTC
  • mto: This revision was merged to the branch mainline in revision 607.
  • Revision ID: ed@leafe.com-20110119020028-3hthda2qccp2uawa
Completed first pass at converting all localized strings with multiple format substitutions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
            description = _("Unexpected error while running command.")
34
34
        if exit_code is None:
35
35
            exit_code = '-'
36
 
        message = _("%s\nCommand: %s\nExit code: %s\nStdout: %r\nStderr: %r")\
37
 
                % (description, cmd, exit_code, stdout, stderr)
 
36
        message = _("%(description)s\nCommand: %(cmd)s\n"
 
37
                "Exit code: %(exit_code)s\nStdout: %(stdout)r\n"
 
38
                "Stderr: %(stderr)r") % locals()
38
39
        IOError.__init__(self, message)
39
40
 
40
41