From c45c34adb14f2a04d2d335e7c5c84e094223dc50 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 20 Jun 2024 12:28:50 +1000 Subject: [PATCH] feat: Add more error logging --- website/routes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/routes.py b/website/routes.py index 3d2ffaf..156f221 100644 --- a/website/routes.py +++ b/website/routes.py @@ -447,7 +447,11 @@ def authorize(): try: grant = authorization.get_consent_grant(end_user=user) except OAuth2Error as error: - return error.error + return jsonify({ + "error": error.error, + "description": error.description, + "uri": error.uri, + }) return render_template("authorize.html", user=user, grant=grant) grant_user = user