Skip to content

Commit

Permalink
fix: Adjust stack trace file path extraction to improve accuracy in i…
Browse files Browse the repository at this point in the history
…ndex.ts
  • Loading branch information
austenstone committed Nov 26, 2024
1 parent 55e09ad commit 034efe6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29167,7 +29167,7 @@ catch (e) {
startColumn: parseInt(lastStackEntry[2]),
}
: {};
stackInfo.file = stackInfo.file?.split("/").slice(5).join("/");
stackInfo.file = stackInfo.file?.split("/").slice(6).join("/");
(0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.info)(`Stack: ${JSON.stringify(stackInfo, null, 2)}`);
(0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.error)(e.message, {
title: e.name,
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

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?.split("/").slice(5).join("/");
stackInfo.file = stackInfo.file?.split("/").slice(6).join("/");
info(`Stack: ${JSON.stringify(stackInfo, null, 2)}`);
error(e.message, {
title: e.name,
Expand Down

0 comments on commit 034efe6

Please sign in to comment.