diff --git a/src/utils/errors.ts b/src/utils/errors.ts index 027ffec..9559577 100644 --- a/src/utils/errors.ts +++ b/src/utils/errors.ts @@ -2,9 +2,17 @@ import { scope, Errorish } from 'errorish'; export class CustomError extends Errorish {} -export class OpenError extends CustomError {} +export class OpenError extends CustomError { + public get name(): string { + return 'OpenError'; + } +} -export class WrappedError extends CustomError {} +export class WrappedError extends CustomError { + public get name(): string { + return 'WrappedError'; + } +} export const open = scope.set('_kpo_open_', { Error: CustomError,