Fix browser error markdown formatting

(imported from commit ce793676d6118d86a8aee4f3aae1bc728b0cd8fd)
This commit is contained in:
Kevin Mehall 2013-11-15 10:33:19 -05:00
parent 53c76aa657
commit b12649e548
1 changed files with 7 additions and 6 deletions

View File

@ -62,18 +62,19 @@ def zulip_browser_error(report):
body = "User: %s\n" % (user_info,)
body += (
"Message: %(message)s\n"
"~~~\n%(stacktrace)s\n~~~\n"
"User agent: `%(user_agent)s`\n"
"href: `%(href)s`\n"
"Server path: `%(server_path)s`\n"
"Deployed version: `%(version)s`\n"
"~~~\n%(stacktrace)s\n~~~\n~~~\n"
"- User agent: %(user_agent)s\n"
"- href: %(href)s\n"
"- Server path: %(server_path)s\n"
"- Deployed version: %(version)s\n~~~\n"
% report )
more_info = report['more_info']
if more_info is not None:
body += "\nAdditional information:\n~~~"
for (key, value) in more_info.iteritems():
body += "\n %s: %s" % (key, value)
body += "\n%s: %s" % (key, value)
body += "\n~~~\n"
body += "Log:\n~~~\n%s\n~~~" % (report['log'],)