You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix variable name to match standards
* Support deleting a Magnum bay
* Extract the error message from requests that fail with 400
The problem may not actually be due to a bad request and actually
is caused by the bay state, so display a more appropriate error message.
* Move delete error handling into errors.go
* Enable special handling of 409 Conflict errors
* Attempt to unwrap custom error messages from the server
Fallback to the default error message for the status code if
a custom error message isn't present
* Unwrap errors from create and get too
* Preserve the original UnexpectedResponseCode
This lets consumers get a nice message but still inspect the failed
response code, body, etc.
* Remove redundant else statements
* Use standard DeleteResult instead of DeleteHeader
0 commit comments