Skip to content

Commit

Permalink
fix: Refactor stack trace file path formatting in index.ts for improv…
Browse files Browse the repository at this point in the history
…ed clarity
  • Loading branch information
austenstone committed Nov 26, 2024
1 parent 8a6fb44 commit 407a681
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 @@ -39,7 +39,7 @@ try {
}
: {};

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

0 comments on commit 407a681

Please sign in to comment.