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] Added fetch dist-tags http status validation #9549

Merged
merged 2 commits into from
Feb 24, 2023

Conversation

cb1kenobi
Copy link
Contributor

If for some reason the get-latest-worker.js fails to get the dist-tags, it doesn't check the status code and proceeds to JSON.parse() the response. If for example npm returns 401 Unauthorized, you get a cryptic JSON parse error message.

@kodiakhq kodiakhq bot merged commit cc82c49 into main Feb 24, 2023
@kodiakhq kodiakhq bot deleted the chrisbarber/get-latest-better-error-handling branch February 24, 2023 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cli pr: automerge Automatically merge the PR when checks pass semver: patch PR contains bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants