about summary refs log tree commit diff
path: root/gn3/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/errors.py')
-rw-r--r--gn3/errors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/errors.py b/gn3/errors.py
index f0d499e..e937653 100644
--- a/gn3/errors.py
+++ b/gn3/errors.py
@@ -72,7 +72,7 @@ def handle_authorisation_error(exc: AuthorisationError):
     logger.error("Handling external auth errors - %s", request.url)
     return jsonify(add_trace(exc, {
         "error": type(exc).__name__,
-        "error_description": " :: ".join(exc.args)
+        "error_description": str(exc)
     })), 401
 
 
@@ -130,7 +130,7 @@ def handle_local_authorisation_errors(exc: oautherrors.AuthorisationError):
     logger.error("Handling local auth errors - %s", request.url)
     return jsonify(add_trace(exc, {
         "error": type(exc).__name__,
-        "error_description": " ".join(exc.args)
+        "error_description": str(exc)
     })), 401