server/middleware: fix reporting auth errors

This commit is contained in:
rr- 2016-09-24 08:37:36 +02:00
parent c7d0ffb212
commit d1cad99e87

View file

@ -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)))