Merge "s3api: Put more information in the str() for InternalError"
This commit is contained in:
commit
ed8500b339
@ -361,6 +361,10 @@ class InternalError(ErrorResponse):
|
|||||||
_status = '500 Internal Server Error'
|
_status = '500 Internal Server Error'
|
||||||
_msg = 'We encountered an internal error. Please try again.'
|
_msg = 'We encountered an internal error. Please try again.'
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return '%s: %s (%s)' % (
|
||||||
|
self.__class__.__name__, self.status, self._msg)
|
||||||
|
|
||||||
|
|
||||||
class InvalidAccessKeyId(ErrorResponse):
|
class InvalidAccessKeyId(ErrorResponse):
|
||||||
_status = '403 Forbidden'
|
_status = '403 Forbidden'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user