Merge "Fix the message of coverage directory error"

This commit is contained in:
Jenkins
2013-08-29 01:48:00 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions
@@ -215,7 +215,7 @@ class CoverageController(object):
coverInst.xml_report(outfile=path)
elif html:
if os.path.isdir(path):
msg = _("Directory conflict: %s already exists")
msg = _("Directory conflict: %s already exists") % path
raise exc.HTTPBadRequest(explanation=msg)
coverInst.html_report(directory=path)
else:
@@ -248,7 +248,7 @@ class CoverageController(wsgi.Controller):
coverInst.xml_report(outfile=path)
elif html:
if os.path.isdir(path):
msg = _("Directory conflict: %s already exists")
msg = _("Directory conflict: %s already exists") % path
raise exc.HTTPBadRequest(explanation=msg)
coverInst.html_report(directory=path)
else: