aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/errors.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-17 11:03:25 -0500
committerFrederick Muriuki Muriithi2024-06-17 11:03:25 -0500
commit5612df9436cad6d9b88242cb26c8d2de7fd174e7 (patch)
treed53ddda60a66122620f3457d556210982ee47657 /gn_auth/errors.py
parent7148cca0f169ffbace5c1d19d9831e66c1fd7647 (diff)
downloadgn-auth-5612df9436cad6d9b88242cb26c8d2de7fd174e7.tar.gz
Present errors more cleanly.
Diffstat (limited to 'gn_auth/errors.py')
-rw-r--r--gn_auth/errors.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gn_auth/errors.py b/gn_auth/errors.py
index d50d7c1..df3aa86 100644
--- a/gn_auth/errors.py
+++ b/gn_auth/errors.py
@@ -37,7 +37,10 @@ def handle_general_exception(exc: Exception):
"error_description": msg
})), 500
- return render_template("500.html", page=request.url), 500
+ return render_template("50x.html",
+ page=request.url,
+ error=exc,
+ trace=traceback.format_exception(exc)), 500
def handle_authorisation_error(exc: AuthorisationError):