Skip to content

Commit

Permalink
fix: wrong status in handler when send error
Browse files Browse the repository at this point in the history
  • Loading branch information
trylovetom committed Apr 18, 2020
1 parent 405eba3 commit c506641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tonjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export function handler(fn: TonHandler) {

send(res, res.statusCode || 200, result)
} catch (err) {
sendError(res, create4xxError(500, TonStatusCodes[500], err))
sendError(res, create5xxError(500, TonStatusCodes[500], err))
}
}
}
Expand Down

0 comments on commit c506641

Please sign in to comment.