diff --git a/src/utils/error.ts b/src/utils/error.ts index f3cf847..d145ef7 100644 --- a/src/utils/error.ts +++ b/src/utils/error.ts @@ -126,8 +126,8 @@ export abstract class StorybookSvelteCSFError extends Error { }, options?: ConstructorParameters[1] ) { - super('', options); - + super(); + this.cause = options?.cause; this.filename = filename; this.component = component; }