From c21687f4b2765d74a2e37b92c9ad088aa2b635d6 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Thu, 14 Dec 2023 18:29:46 +0700 Subject: [PATCH] feat: catch error when calling the `main` function --- dist/index.mjs | 2 +- src/index.mts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.mjs b/dist/index.mjs index 4946f72..5f57d82 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -27302,7 +27302,7 @@ async function main() { ]); } } -main(); +main().catch((err) => _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed(err)); })(); diff --git a/src/index.mts b/src/index.mts index 5254742..b8219f4 100644 --- a/src/index.mts +++ b/src/index.mts @@ -75,4 +75,4 @@ async function main() { } } -main(); +main().catch((err) => core.setFailed(err));