-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat(TError) : Make TError default to Error instead of unknown #4706
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
feat(TError) : Make TError default to Error instead of unknown #4706
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 06a713b:
|
close #4676 |
@TkDodo done with this one too |
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.
🚀
can you please resolve the conflicts? We've merged the big syntax change (object syntax) PR and sadly it causes quite some conflicts. Should be straight forward to solve though - sorry! |
done |
formatting is failing:
|
ah yeah! sorry, forgot to run it, fixed |
seems like the same solid tests is always failing, and its one that was touched in this PR. do you maybe know why? Or should we ask @ardeora 😅 |
oh that's odd!all the test are passing locally, I'll investigate |
@TkDodo this a new error from the merge, it has something to do with the suspense |
always Reject with Errors instead of plain strings
I think it's because the Anyways, this is not the problem here. The problem was that we still had some tests that rejected a promise with a string. I fixed that here: b2d62d9 |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## v5 #4706 +/- ##
=====================================
Coverage ? 90.73%
=====================================
Files ? 89
Lines ? 3487
Branches ? 896
=====================================
Hits ? 3164
Misses ? 301
Partials ? 22 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
This PR makes the TError default to Error instead of unknown, more info about this here