From d9e51bdbb3f5eabd49956f31659316343cad6d08 Mon Sep 17 00:00:00 2001 From: Mitsuki Ogasahara Date: Mon, 7 Feb 2022 10:47:23 +0900 Subject: [PATCH] Add error handler --- src/app.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app.ts b/src/app.ts index 49ac046..23f51eb 100644 --- a/src/app.ts +++ b/src/app.ts @@ -159,5 +159,10 @@ export function createApp(config: Config & AppOptions) { }) app.step(ws) + // @ts-expect-error + app.error((error) => { + console.error(error) + }) + return app }