Y
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
hombre_fatal
2233 days ago
promise.catch(console.error) is still handling the error.
link
z3t4
2233 days ago
That's still a soft error. Meaning the app will continue like if nothing happened. Resulting in poisonous state.
link