Skip to content

Commit

Permalink
fix: Improve error logging by modifying stack trace output format in …
Browse files Browse the repository at this point in the history
…index.ts
  • Loading branch information
austenstone committed Nov 26, 2024
1 parent 034efe6 commit 401217e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ try {
: {};

stackInfo.file = stackInfo.file?.split("/").slice(6).join("/");
info(`Stack: ${JSON.stringify(stackInfo, null, 2)}`);
error(e.message, {
error(`${e.message}\n${JSON.stringify(e)}`, {
title: e.name,
...stackInfo,
});
Expand Down

0 comments on commit 401217e

Please sign in to comment.