-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: handle error from pool.run #1348
Conversation
✅ Deploy Preview for vitest-dev ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
CI is not happy :S
Also, we are calling this function in vitest/packages/vitest/src/node/core.ts Line 220 in a23fb58
Which has a try/catch 🤔 |
When an error happens here, these two vitest/packages/vitest/src/node/pool.ts Line 94 in 478465a
vitest/packages/vitest/src/node/pool.ts Lines 95 to 96 in 478465a
I don't know what happens if it is not called, but it seems it needs to be called. |
I guess they need to be called, yes (so we need to keep your |
If I use
I thought it will be better to have those too but I didn't come up with how to implement it. |
When an error was thrown from
pool.run
, vitest finished without any error messages.This PR handles that error.
I found this while implementing vitejs/vite#8049.
Before
There was no error message.
After
It shows as a Unhandled Error but it is now much better than no error message.
To be honest, I don't know where it should be handled.