If I try running localhost:3000/foo/bar, I'm supposed to get a 404 error. I do get that error and a huge stack trace. Currently I don't need such a long stack trace, is there a way to mute it?
if (!foo) {
var err = new Error('404');
err.status = 404;
return next(err);
}
res.render('bar/foo', {
foo: foo.toJSON()
});