diff --git a/lib/error.ts b/lib/error.ts index ebc97db..9bc5f8f 100644 --- a/lib/error.ts +++ b/lib/error.ts @@ -122,7 +122,7 @@ export class DescriptError { } if (this.error?.id === 'Error') { - this.error.id = ERROR_ID.UNKNOWN_ERROR; + this.error.id = ERROR_ID.JS_ERROR; } if (!this.error?.id) { diff --git a/lib/logger.ts b/lib/logger.ts index 4390878..0926909 100644 --- a/lib/logger.ts +++ b/lib/logger.ts @@ -51,6 +51,8 @@ export type LoggerEvent = SuccessLoggerEvent | ErrorLoggerEvent | StartLoggerEve class Logger { + static EVENT = EVENT; + private _debug = false; constructor(config: Config) {