Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cli] Use more fool-proof status code check for auth errors #1744

Merged
merged 1 commit into from Feb 19, 2020

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Feb 19, 2020

#1741 introduced a regression where the response property was not present on errors but would blindly be checked. This adds a more fool-proof check for it.

@vercel
Copy link

vercel bot commented Feb 19, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/sanity-io/test-studio/1i2ox8qfq
✅ Preview: https://test-studio-git-fix-auth-error-check.sanity-io.now.sh

@rexxars rexxars merged commit dbad671 into next Feb 19, 2020
@rexxars rexxars deleted the fix-auth-error-check branch February 19, 2020 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant