From eb474e693c8d6239624138b9c8fa7292602925f1 Mon Sep 17 00:00:00 2001 From: dd Date: Sat, 5 Jun 2021 15:39:08 -0400 Subject: [PATCH] process exit on error after trySubmit --- src/Submitter.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Submitter.ts b/src/Submitter.ts index 25a85b4..81a3a21 100644 --- a/src/Submitter.ts +++ b/src/Submitter.ts @@ -132,7 +132,12 @@ export class Submitter { // should reload the state before trying to submit await this.reloadStates() - await this.trySubmit() + try { + await this.trySubmit() + } catch (e) { + console.error(e) + process.exit(1) + } } }