process exit on error after trySubmit

This commit is contained in:
dd 2021-06-05 15:39:08 -04:00
parent b1318349e6
commit eb474e693c
1 changed files with 6 additions and 1 deletions

View File

@ -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)
}
}
}