Skip to content

Commit

Permalink
feat: make Kernel.errorHandler public
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 5, 2024
1 parent 13dae53 commit a390e7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kernel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import type {
* is tailored for a standard CLI environment.
*/
export class Kernel<Command extends AbstractBaseCommand> {
#errorHandler: {
errorHandler: {
render(error: unknown, kernel: Kernel<any>): Promise<any>
} = new ExceptionHandler()

Expand Down Expand Up @@ -361,7 +361,7 @@ export class Kernel<Command extends AbstractBaseCommand> {
} catch (error) {
this.exitCode = 1
this.#state = 'completed'
await this.#errorHandler.render(error, this)
await this.errorHandler.render(error, this)
}
}

Expand Down

0 comments on commit a390e7f

Please sign in to comment.