Skip to content

Commit d302ad1

Browse files
glebeckhumphrey
authored andcommitted
fix(server/start): error middleware missing param (#99)
1 parent e5c74df commit d302ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports = app
7171
// Error middleware interceptor, delegates to same handler Express uses.
7272
// https://github.com/expressjs/express/blob/master/lib/application.js#L162
7373
// https://github.com/pillarjs/finalhandler/blob/master/index.js#L172
74-
.use((err, req, res) => {
74+
.use((err, req, res, next) => {
7575
console.error(prettyError.render(err))
7676
finalHandler(req, res)(err)
7777
})

0 commit comments

Comments
 (0)