News for hackers. Stuff that matters.
Re:ESLint 7.0 by z3t4 on Monday May 11, 2020 @03:43PM (#23146130)
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.
Re:ESLint 7.0 by hombre_fatal on Tuesday May 12, 2020 @12:50AM (#23150681)
promise.catch(console.error) is still handling the error.
Re:ESLint 7.0 by z3t4 on Tuesday May 12, 2020 @11:30AM (#23155026)
That's still a soft error. Meaning the app will continue like if nothing happened. Resulting in poisonous state.