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

fix: thrown NotFoundError constructor #3380

Merged
merged 1 commit into from May 27, 2021
Merged

fix: thrown NotFoundError constructor #3380

merged 1 commit into from May 27, 2021

Conversation

natemoo-re
Copy link
Contributor

Changes

In a few spots, Snowpack was doing throw NotFoundError directly instead of throw new NotFoundError(reqUrl). This made for some weird error messages!

I also exported NotFoundError so that integrators can check err instanceof NotFoundError if they want to.

Testing

yarn link and run in Astro

Docs

Bug fix

@natemoo-re natemoo-re requested a review from a team as a code owner May 27, 2021 15:17
@vercel
Copy link

vercel bot commented May 27, 2021

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

🔍 Inspect: https://vercel.com/pikapkg/snowpack/7REYopL1LRoLCg3kH1i8icXd1JKE
✅ Preview: https://snowpack-git-fix-err-notfound-pikapkg.vercel.app

@natemoo-re natemoo-re mentioned this pull request May 27, 2021
23 tasks
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

2 participants