5 ms·
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 ha
by z3t4 6y 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.
- hombre_fatal 6y agopromise.catch(console.error) is still handling the error.
- z3t4 6y agoThat's still a soft error. Meaning the app will continue like if nothing happened. Resulting in poisonous state.