Skip to content

Commit

Permalink
fix(app): handle returning promise
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 17, 2020
1 parent 99cea41 commit 2169f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function createApp (): App {
}

const handle: Handle = function (req: RequestT, res: ResponseT) {
_handle(req, res).catch((err: Error | any) => {
return _handle(req, res).catch((err: Error | any) => {
error(res,
debug ? err.stack : 'internal error',
res.statusCode || err.status || err.statusCode || 500
Expand Down

0 comments on commit 2169f92

Please sign in to comment.