Skip to content

Commit

Permalink
message-not-always-there
Browse files Browse the repository at this point in the history
  • Loading branch information
uriva committed Feb 16, 2024
1 parent ef361c9 commit f7a3b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const pipeWithoutStack = <Fs extends Func[]>(
>;

const augmentException = (codeLocation: string) => (e: Error) => {
e.message += "\n" + codeLocation;
e.message = (e.message ? (e.message + "\n") : "") + codeLocation;
return e;
};

Expand Down

0 comments on commit f7a3b45

Please sign in to comment.