Merge "Don't drop details info in the raised exception"

This commit is contained in:
Zuul 2022-01-17 07:26:17 +00:00 committed by Gerrit Code Review
commit 72985fb905
1 changed files with 3 additions and 0 deletions

View File

@ -47,7 +47,10 @@ def get_http_error_details(response):
for error in msg.get('related_errors', []) if
error.get('httpStatus')]
details = msg.get('details')
msg = msg['error_message']
if details:
msg += " details: %s" % details
if related_errors:
msg += " relatedErrors: %s" % ' '.join(related_errors)