Skip to content

Commit

Permalink
fix: Simplify stack trace file path extraction in index.js for improv…
Browse files Browse the repository at this point in the history
…ed readability
  • Loading branch information
austenstone committed Nov 26, 2024
1 parent 407a681 commit 55e09ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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?.replace(/^([^\/]+\/){5}/, "");
stackInfo.file = stackInfo.file?.split("/").slice(5).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 All @@ -29176,7 +29176,7 @@ catch (e) {
}
throw e;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZmlsZTovLy9DOi9Vc2Vycy9hdXN0ZS9zb3VyY2UvYWN0aW9uLXR5cGVzY3JpcHQvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsSUFBSSxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDN0QsT0FBTyxFQUFFLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUV0RCxNQUFNLEtBQUssR0FBRztJQUNaLEtBQUssRUFBRSxRQUFRLENBQUMsY0FBYyxDQUFDO0NBQ2hDLENBQUM7QUFFRixJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLEVBQUUsSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUM7QUFDckMsSUFBSSxDQUFDLEl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DO0FBQ1YsQ0FBQyJ9
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } }, 1);

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 55e09ad

Please sign in to comment.