I looked at the answer on the exercise above and while I see it added the following lines to the code base.
const errorHandler = require('errorhandler')
app.use(errorHandler());
I still see
app.use((err, req, res, next) => {
res.status(500).send(err);
});
at the bottom of the file. I would have expected the following line to replace the line directly above.
app.use(errorHandler());