Commit f4750511 authored by Claude Paroz's avatar Claude Paroz

Improve display of error messages (and prevent path divulgation)

parent 5b78bf20
pre {
white-space: pre-wrap;
}
table.stats { table.stats {
width: 100%; width: 100%;
} }
......
...@@ -207,7 +207,7 @@ def generate_doc_pot_file(vcs_path, potbase, moduleid, verbose): ...@@ -207,7 +207,7 @@ def generate_doc_pot_file(vcs_path, potbase, moduleid, verbose):
errors.append(("error", errors.append(("error",
ugettext_noop("Error regenerating POT file for document %(file)s:\n<pre>%(cmd)s\n%(output)s</pre>") ugettext_noop("Error regenerating POT file for document %(file)s:\n<pre>%(cmd)s\n%(output)s</pre>")
% {'file': potbase, % {'file': potbase,
'cmd': command, 'cmd': command.replace(settings.SCRATCHDIR, "&lt;scratchdir&gt;"),
'output': errs}) 'output': errs})
) )
potfile = "" potfile = ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment