From f1412cdffa029cf5f708641143b54417980d6b82 Mon Sep 17 00:00:00 2001 From: Xmader Date: Mon, 30 Nov 2020 14:21:55 -0500 Subject: [PATCH] fix: cli error handling --- src/cli.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 979a0f5..31ae467 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -48,7 +48,11 @@ void (async () => { if (!isLocalFile) { // request scoreinfo scoreinfo = await ScoreInfoHtml.request(fileInit) - await getActualId(scoreinfo as any) + try { + await getActualId(scoreinfo as any) + } catch (err) { + console.error(err) + } // confirmation const { confirmed } = await inquirer.prompt({