-
Notifications
You must be signed in to change notification settings - Fork 359
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
fix: updated error message for attempting to deploy a site with a bad… #6884
Conversation
… auth key Co-authored-by: Ben Hancock <[email protected]>
Hi @dylanspyer! Thank you so much for your contribution :) could you maybe still log 'site not found' but also render the error message? I think this could inform our users better on what part of the process went wrong and why? |
… precise Co-authored-by: Ben Hancock <[email protected]>
Thanks for the feedback! I pushed an update with a clearer error message: In this failure case, it's possible that the site id is valid and the auth token is invalid. Logging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! Just have a request to remove those type errors.
Co-authored-by: Ben Hancock <[email protected]>
🎉 Thanks for submitting a pull request! 🎉
Summary
Fixes: 6736
Previously,
netlify deploy
with a valid site ID and an invalid auth token would logError: Site not found. Please rerun "netlify link"
. Updated this error message to be more clear by logging themessage
property from the API response when the response status is 401.Before:
After:
For us to review and ship your PR efficiently, please perform the following steps:
passes our tests.
A picture of a cute animal (not mandatory, but encouraged)