diff --git a/server/szurubooru/middleware/authenticator.py b/server/szurubooru/middleware/authenticator.py index b78b90ea..da370ff1 100644 --- a/server/szurubooru/middleware/authenticator.py +++ b/server/szurubooru/middleware/authenticator.py @@ -36,6 +36,7 @@ def _get_user(ctx): msg = 'Basic authentication header value are not properly formed. ' \ + 'Supplied header {0}. Got error: {1}' raise HttpBadRequest( + 'ValidationError', msg.format(ctx.get_header('Authorization'), str(err)))