update exceptions output (#11989)

This commit is contained in:
Cameron Koegel
2022-03-30 11:54:20 -04:00
committed by GitHub
parent a6bcef5b16
commit 0c825ad301
6 changed files with 6 additions and 6 deletions

View File

@@ -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(