From 5612df9436cad6d9b88242cb26c8d2de7fd174e7 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 17 Jun 2024 11:03:25 -0500 Subject: Present errors more cleanly. --- gn_auth/errors.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gn_auth/errors.py') 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): -- cgit v1.2.3