Merge "Globalize authentication failure error"

This commit is contained in:
Jenkins 2016-09-02 16:56:26 +00:00 committed by Gerrit Code Review
commit 1a94080224
1 changed files with 2 additions and 1 deletions

View File

@ -570,7 +570,8 @@ class AuthProtocol(BaseAuthProtocol):
self.log.info(_LI('Deferring reject downstream'))
else:
self.log.info(_LI('Rejecting request'))
message = 'The request you have made requires authentication.'
message = _('The request you have made requires '
'authentication.')
body = {'error': {
'code': 401,
'title': 'Unauthorized',