Browse Source

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

changes/37/825037/1
Zuul 4 months ago committed by Gerrit Code Review
parent
commit
72985fb905
  1. 3
      vmware_nsxlib/v3/client.py

3
vmware_nsxlib/v3/client.py

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

Loading…
Cancel
Save