Skip to content

Commit 034efe6

Browse files
committed
fix: Adjust stack trace file path extraction to improve accuracy in index.ts
1 parent 55e09ad commit 034efe6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29167,7 +29167,7 @@ catch (e) {
2916729167
startColumn: parseInt(lastStackEntry[2]),
2916829168
}
2916929169
: {};
29170-
stackInfo.file = stackInfo.file?.split("/").slice(5).join("/");
29170+
stackInfo.file = stackInfo.file?.split("/").slice(6).join("/");
2917129171
(0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.info)(`Stack: ${JSON.stringify(stackInfo, null, 2)}`);
2917229172
(0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.error)(e.message, {
2917329173
title: e.name,

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ try {
3939
}
4040
: {};
4141

42-
stackInfo.file = stackInfo.file?.split("/").slice(5).join("/");
42+
stackInfo.file = stackInfo.file?.split("/").slice(6).join("/");
4343
info(`Stack: ${JSON.stringify(stackInfo, null, 2)}`);
4444
error(e.message, {
4545
title: e.name,

0 commit comments

Comments
 (0)