We handle resolve callbacks with then, but what about reject callbacks? We have a catch function that we can use to handle errors or rejected promises. It is generally a good idea to have an error handler at the end of your promises.
errorLog to the error inside your error handler.promise.catch(/error handling/). See the Comments for more details.