.catch()
↔ Chain Callback to handle Promise
Error
propagation
.catch()
implicitly passed error object Argument
.catch(err ⇒ console.error(err.message))
Silent Fail
Error throw
n in async code MISSING .catch()
use with Guard Clause to throw custom Error message
if(!response.ok) throw new Error(`${X} no found!`)
References
Silent Fail
↔ Errorthrow
n in async code MISSING.catch()