Skip to content

Commit

Permalink
fix(errors): Resolved issue with error printing
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Dec 23, 2023
1 parent 71b4a7d commit 5205570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/errors/src/storm-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class StormError<TCode extends string = string> extends Error {
super(message, { cause });

this.code = code;
this.message ??= message ?? EMPTY_STRING;
this.message ??= message ? message : "An error occurred during processing";
this.name ??= name ? name : this.constructor.name;
this.data = data;

Expand Down

0 comments on commit 5205570

Please sign in to comment.