Skip to content

Commit b6419f5

Browse files
committed
Set render to send
1 parent 8153e56 commit b6419f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ app.use(function (err, req, res, next) {
3232

3333
// render the error page
3434
res.status(err.status || 500);
35-
res.render('error');
35+
res.send({
36+
err
37+
});
3638
});
3739

38-
module.exports = app;
40+
module.exports = app;

0 commit comments

Comments
 (0)