#error-handling
Read more stories on Hashnode
Articles with this tag
In an async task (e.g. in a promise), you need to use next(error) - throw error will NOT cause the error handling middleware to become active.
Fetch is a promise. normal try catch wont work with that because fetch wont instantly throw an error or resolve and by the time it does we will be out...
Question: Everything is working PERFECTLY FINE in my code, but I have DELIBERATELY inserted an error - by removing an 's' from 'meals' in the url in...