diff --git a/templates/express/controllers/index.js b/templates/express/controllers/index.js index b33a4adec..5b781787a 100644 --- a/templates/express/controllers/index.js +++ b/templates/express/controllers/index.js @@ -10,6 +10,8 @@ exports.partials = function(req, res) { var requestedView = path.join('./', stripped); res.render(requestedView, function(err, html) { if(err) { + console.log("Error rendering partial '" + requestedView + "'\n", err); + res.status(404); res.send(404); } else { res.send(html);