From 6c7da7478321aaa30e432eaecd684c20fd298c27 Mon Sep 17 00:00:00 2001 From: Tyler-A Date: Sun, 12 Jan 2020 00:44:17 -0600 Subject: [PATCH] Log errors when they occur but are not caught --- src/main.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index c9fd810..d13cae1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,7 @@ // // main.ts // -// Written by: Tyler Akins (2020/01/06 - 2020/01/07) +// Written by: Tyler Akins (2020/01/06 - 2020/01/11) // @@ -10,7 +10,9 @@ import { START_BOT } from "./Twitch" const MAIN = async () => { - START_BOT(); + START_BOT().catch( + (err) => {console.error(err);} + ); };