Skip to content

Commit

Permalink
fix: Log error details in index.ts for better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
austenstone committed Nov 26, 2024
1 parent c092823 commit 8114c51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29151,12 +29151,13 @@ try {
});
}
catch (e) {
(0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.error)(JSON.stringify(e, null, 2));
if (e instanceof Error) {
(0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.error)(e.message);
}
throw e;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZmlsZTovLy9DOi9Vc2Vycy9hdXN0ZS9zb3VyY2UvYWN0aW9uLXR5cGVzY3JpcHQvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsSUFBSSxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDN0QsT0FBTyxFQUFFLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUV0RCxNQUFNLEtBQUssR0FBRztJQUNaLEtBQUssRUFBRSxRQUFRLENBQUMsY0FBYyxDQUFDO0NBQ2hDLENBQUM7QUFFRixJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLEVBQUUsSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUM7QUFDckMsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxJQUFJLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQUU1QyxNQUFNLE9BQU8sR0FBRyxVQUFVLENBQUMsS0FBSyxDQUFDLEt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M7QUFDVixDQUFDIn0=
__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.

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ try {
}
});
} catch (e) {
error(JSON.stringify(e, null, 2));
if (e instanceof Error) {
error(e.message);
}
Expand Down

0 comments on commit 8114c51

Please sign in to comment.