-
Notifications
You must be signed in to change notification settings - Fork 19
Re-throw errors if we're not being specific when catching them #144
Comments
I would like to contribute to this issue, Can I help? |
Sure! Have a look at the contribution guide and look for try/catch blocks on the code. Thanks! |
Could you also see to introduce an error boundary wrapping the whole app? Probably replacing it this div: The call to |
Hello @armenzg can I work on this issue? |
Hey @csd713 ! sure thing. |
Not really :) Could you please give a little more info on this? |
If you look at this change you might be able to understand what I'm saying. This code can fail either fetching or parsing what was fetched:
Now, a network error was happening, however, we were printing this message I modified the code to make it distringuish the network error but using If you read my comment when filing this issue you will see that in most cases all we need is add a I'm also going to request this issue to become available for takes: On another note, I'm going to be starting a new project in the next couple of weeks in case you want to work with me on it. In short, it will be a rewrite of this site: https://arewefastyet.com |
Fixed by @csd713 ! 🎉 🎆 |
In this change [1] I catch an error with typeof and e.message to be sure it is the one I want to catch.
We have a lot of code catching errors, however, if we're not being specific we can hide other errors.
I would like this issue to:
throw error
and let it get to the console and sentry.io[1]
firefox-code-coverage-frontend/src/components/diffviewer.js
Lines 47 to 60 in 135da3f
The text was updated successfully, but these errors were encountered: