Skip to content

Commit

Permalink
Add error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
yamitzky committed Feb 7, 2022
1 parent 9d605d5 commit d9e51bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,10 @@ export function createApp(config: Config & AppOptions) {
})
app.step(ws)

// @ts-expect-error
app.error((error) => {
console.error(error)
})

return app
}

0 comments on commit d9e51bd

Please sign in to comment.