Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
add a default error message for internal server errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Apr 2, 2015
1 parent 9fac990 commit 758d098
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions error.spt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ except Exception as e:
if isinstance(response, LazyResponse):
response.render_body(state)
err = response.body
if code == 500 and not err:
err = _("Looks like you've found a bug! Sorry for the inconvenience, we'll get it fixed ASAP!")

[----------------------------------------] text/html
{% extends "templates/base.html" %}
Expand Down

0 comments on commit 758d098

Please sign in to comment.