Skip to content

Commit

Permalink
fix: do not handle error when prompt was cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Feb 14, 2021
1 parent f2b614b commit 30e623f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Ignitor/Ace/App/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ export class App {
*/
await this.kernel.handle(argv)
} catch (error) {
if (!error) {
process.exit(1)
return
}
new ErrorHandler(this.application).handleError(error).finally(() => process.exit(1))
}
}
Expand Down

0 comments on commit 30e623f

Please sign in to comment.