Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Return the http status code information in the error text for the "Managers" #258

Merged

Conversation

richardpark-msft
Copy link
Member

The various manager APIs all had their own error handling code, which would result in them occasionally obscuring the actual HTTP response error.

We're now respecting the HTTP status codes and anything >= 400 causes us to fail with an actual error with text, rather than an empty error.

(This fix will need to be imported into the new SDK as well)

Fixes #229

…s codes.

It doesn't appear to ever be the right thing to do, so now we just have a standard check that looks at the 'err' and then the 'resp' to see if there's something reportable.
… 'not found' is okay since the subscription isn't always created.
@richardpark-msft richardpark-msft merged commit d0f6cc3 into Azure:master Oct 18, 2021
@richardpark-msft richardpark-msft deleted the subscription-status-codes branch October 18, 2021 18:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blank error returned when using a key without Manage permission with SubscriptionManager.Get
2 participants