diff options
-rw-r--r-- | wqflask/wqflask/templates/error.html | 8 | ||||
-rw-r--r-- | wqflask/wqflask/views.py | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/wqflask/wqflask/templates/error.html b/wqflask/wqflask/templates/error.html index 9d9e66d4..95485f1e 100644 --- a/wqflask/wqflask/templates/error.html +++ b/wqflask/wqflask/templates/error.html @@ -17,12 +17,12 @@ together. </p> <p> - <b>It is important to report this error so we can fix it for everyone</b>. + <b>It is important to report this ERROR so we can fix it for everyone</b>. </p> <p> Report to the GeneNetwork team by recording the steps you take - to reproduce this error. Next to those steps, copy-paste below + to reproduce this ERROR. Next to those steps, copy-paste below stack trace, either as a <a href="https://github.com/genenetwork/genenetwork2/issues/new">new issue</a> (GeneNetwork error: {{message}}) or E-mail this full page to one of the developers @@ -31,6 +31,7 @@ </div> <pre> + {{ stack[0] }} {{ message }} (error) {{ stack[-3] }} {{ stack[-2] }} @@ -45,8 +46,7 @@ <a href="#Stack" class="btn btn-default" data-toggle="collapse">Toggle full stack trace</a> <div id="Stack" class="collapse"> <pre> - {% for line in stack %} - {{ line }} + {% for line in stack %} {{ line }} {% endfor %} </pre> </div> diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 40a77df3..12d43052 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -91,10 +91,11 @@ def shutdown_session(exception=None): def handle_bad_request(e): err_msg = str(e) logger.error(err_msg) + logger.error(request.url) # get the stack trace and send it to the logger exc_type, exc_value, exc_traceback = sys.exc_info() logger.error(traceback.format_exc()) - formatted_lines = traceback.format_exc().splitlines() + formatted_lines = [request.url]+traceback.format_exc().splitlines() # Handle random animations # Use a cookie to have one animation on refresh |