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:
softwarefactory-project-zuul[bot] 2020-02-11 21:18:15 +00:00 committed by GitHub
commit 46ddc84d2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ class Common(Exception):
return self.__str__()
def __str__(self):
return str(self.msg)
return '{} - {}'.format(self.status_string, self.msg)
class BadRequest(Common):