forked from loafle/openapi-generator-original
update exceptions output (#11989)
This commit is contained in:
@@ -112,7 +112,7 @@ class ApiException(OpenApiException):
|
||||
|
||||
def __str__(self):
|
||||
"""Custom error messages for exception"""
|
||||
error_message = "({0})\n"\
|
||||
error_message = "Status Code: {0}\n"\
|
||||
"Reason: {1}\n".format(self.status, self.reason)
|
||||
if self.headers:
|
||||
error_message += "HTTP response headers: {0}\n".format(
|
||||
|
||||
Reference in New Issue
Block a user