Hacker News new | ask | show | jobs
by z3t4 2234 days ago
If you add a catch block it will be even worse, all errors inside a promise callback will then become soft errors. Only add the catch if you actually plan to handle the error.
1 comments

promise.catch(console.error) is still handling the error.
That's still a soft error. Meaning the app will continue like if nothing happened. Resulting in poisonous state.