Skip to content

Commit

Permalink
fix: Update error logging to use error message as title in index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
austenstone committed Nov 26, 2024
1 parent 89bd516 commit 3fd2797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ try {
});
info(`Stack: ${JSON.stringify(stack, null, 2)}`);
error(e.message, {
title: e.name,
title: e.message,
...(stack ? stack[stack.length - 1] : {}),
});
}
Expand Down

0 comments on commit 3fd2797

Please sign in to comment.