diff options
author | 2021-06-16 12:26:39 +0300 | |
---|---|---|
committer | 2021-06-16 20:48:12 -0700 | |
commit | 638643cda7fdef179c11252ee68319e2f882cd6a (patch) | |
tree | 52afa2486b5fcb6c003d4ab14fe63111ad79c936 /doc.go | |
parent | 6703e03ce6f91a67e8157b2eca0b305365096382 (diff) | |
download | v2-638643cda7fdef179c11252ee68319e2f882cd6a.tar.gz v2-638643cda7fdef179c11252ee68319e2f882cd6a.tar.zst v2-638643cda7fdef179c11252ee68319e2f882cd6a.zip |
client: Try to parse response Body on InternalServerError
Try to parse the response body from the server when an HTTP 500 is
returned (i.e. http.StatusInternalServerError) as it might contain
useful information. If successful, create a new error and append that
information to the returned error message. Otherwise just maintain the
same behavior
Diffstat (limited to 'doc.go')
0 files changed, 0 insertions, 0 deletions