Commit 450a21fe authored by Adin Schmahmann's avatar Adin Schmahmann Committed by Marcin Rataj

refactor: properly return non-GenericOpenAPIErrors

parent 390a4c0e
...@@ -371,7 +371,7 @@ func httperr(resp *http.Response, e error) error { ...@@ -371,7 +371,7 @@ func httperr(resp *http.Response, e error) error {
if ok { if ok {
ferr, ok := oerr.Model().(openapi.Failure) ferr, ok := oerr.Model().(openapi.Failure)
if ok { if ok {
return errors.Wrapf(e,"statusCode: %d, reason : %q, details : %q", resp.StatusCode, ferr.Error.GetReason(), ferr.Error.GetDetails()) return errors.Wrapf(e,"statusCode: %d, reason: %q, details: %q", resp.StatusCode, ferr.Error.GetReason(), ferr.Error.GetDetails())
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment