We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4542fda commit afb9d37Copy full SHA for afb9d37
templates/express/controllers/index.js
@@ -10,6 +10,8 @@ exports.partials = function(req, res) {
10
var requestedView = path.join('./', stripped);
11
res.render(requestedView, function(err, html) {
12
if(err) {
13
+ console.log("Error rendering partial '" + requestedView + "'\n", err);
14
+ res.status(404);
15
res.send(404);
16
} else {
17
res.send(html);
0 commit comments