From a390e7f5e358f743bc0f46a4208153d0d6e1e9f7 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Thu, 5 Sep 2024 23:26:01 +0530 Subject: [PATCH] feat: make Kernel.errorHandler public --- src/kernel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel.ts b/src/kernel.ts index b7c83f5..e65d567 100644 --- a/src/kernel.ts +++ b/src/kernel.ts @@ -50,7 +50,7 @@ import type { * is tailored for a standard CLI environment. */ export class Kernel { - #errorHandler: { + errorHandler: { render(error: unknown, kernel: Kernel): Promise } = new ExceptionHandler() @@ -361,7 +361,7 @@ export class Kernel { } catch (error) { this.exitCode = 1 this.#state = 'completed' - await this.#errorHandler.render(error, this) + await this.errorHandler.render(error, this) } }