mirror of https://github.com/zulip/zulip.git
Fix browser error markdown formatting
(imported from commit ce793676d6118d86a8aee4f3aae1bc728b0cd8fd)
This commit is contained in:
parent
53c76aa657
commit
b12649e548
|
@ -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'],)
|
||||
|
||||
|
|
Loading…
Reference in New Issue