[BUG] Fix #22351 by updating exceptions.mustache to log both the response data and response body, when applicable (#22352)

* Update exceptions.mustache

* Add autogen files
This commit is contained in:
ddl-rliu
2025-11-16 06:06:23 -08:00
committed by GitHub
parent c1c74c0ec8
commit 547eee1970
7 changed files with 35 additions and 14 deletions

View File

@@ -170,8 +170,11 @@ class ApiException(OpenApiException):
error_message += "HTTP response headers: {0}\n".format(
self.headers)
if self.data or self.body:
error_message += "HTTP response body: {0}\n".format(self.data or self.body)
if self.body:
error_message += "HTTP response body: {0}\n".format(self.body)
if self.data:
error_message += "HTTP response data: {0}\n".format(self.data)
return error_message