server/middleware: fix reporting auth errors
This commit is contained in:
parent
c7d0ffb212
commit
d1cad99e87
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ def _get_user(ctx):
|
||||||
msg = 'Basic authentication header value are not properly formed. ' \
|
msg = 'Basic authentication header value are not properly formed. ' \
|
||||||
+ 'Supplied header {0}. Got error: {1}'
|
+ 'Supplied header {0}. Got error: {1}'
|
||||||
raise HttpBadRequest(
|
raise HttpBadRequest(
|
||||||
|
'ValidationError',
|
||||||
msg.format(ctx.get_header('Authorization'), str(err)))
|
msg.format(ctx.get_header('Authorization'), str(err)))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue