mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 14:09:28 -02:30
Merge pull request #5898 from AlanCoding/exception_detail
By default, give status code in exception representation Reviewed-by: Alan Rominger <arominge@redhat.com> https://github.com/AlanCoding
This commit is contained in:
@@ -15,7 +15,7 @@ class Common(Exception):
|
|||||||
return self.__str__()
|
return self.__str__()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self.msg)
|
return '{} - {}'.format(self.status_string, self.msg)
|
||||||
|
|
||||||
|
|
||||||
class BadRequest(Common):
|
class BadRequest(Common):
|
||||||
|
|||||||
Reference in New Issue
Block a user