Skip to content

Commit 39a4e83

Browse files
committed
Log stack trace for server errors
1 parent 90f768e commit 39a4e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generated/server/app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ app.get('/*', function (req, res) {
3535

3636
// Error catching endware.
3737
app.use(function (err, req, res, next) {
38-
console.error(err, typeof next);
38+
console.error(err, err.stack);
3939
res.status(err.status || 500).send(err.message || 'Internal server error.');
4040
});

0 commit comments

Comments
 (0)