Skip to content

Commit c9afc1c

Browse files
committed
refactor(server:errors): use Express 4 syntax
1 parent 687cd09 commit c9afc1c

File tree

1 file changed

+1
-1
lines changed
  • app/templates/server/components/errors

1 file changed

+1
-1
lines changed

Diff for: app/templates/server/components/errors/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports[404] = function pageNotFound(req, res) {
1414
res.status(result.status);
1515
res.render(viewFilePath, {}, function(err, html) {
1616
if (err) {
17-
return res.json(result, result.status);
17+
return res.status(result.status).json(result);
1818
}
1919

2020
res.send(html);

0 commit comments

Comments
 (0)