We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4542fda + afb9d37 commit b37eb00Copy full SHA for b37eb00
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