Skip to content

Commit 4c2923d

Browse files
committed
fix(ignite): add option to dont exit on errors
1 parent 0daa1fe commit 4c2923d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ignite/Ignite.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class Ignite extends Macroable {
9090
exitOnError: true,
9191
loadConfigSafe: true,
9292
athennaRcPath: './.athennarc.json',
93-
uncaughtExceptionHandler: this.handleError
93+
uncaughtExceptionHandler: this.handleUncaughtError
9494
})
9595

9696
this.setUncaughtExceptionHandler()
@@ -562,7 +562,7 @@ export class Ignite extends Macroable {
562562
if (!Is.Exception(error)) {
563563
error = error.toAthennaException()
564564
}
565-
565+
566566
error.details.push({ isUncaughtError: true })
567567

568568
if (Config.is('app.logger.prettifyException', true)) {
@@ -575,7 +575,7 @@ export class Ignite extends Macroable {
575575

576576
return this.safeExit(1)
577577
}
578-
578+
579579
/**
580580
* Exit the application only if the exitOnError option is true.
581581
*/

0 commit comments

Comments
 (0)