feat: catch error when calling the main function (#138)

This commit is contained in:
Alfi Maulana 2023-12-14 18:37:47 +07:00 committed by GitHub
parent 65845a480e
commit dd9fe54799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
dist/index.mjs generated vendored
View File

@ -27302,7 +27302,7 @@ async function main() {
]);
}
}
main();
main().catch((err) => _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed(err));
})();

View File

@ -75,4 +75,4 @@ async function main() {
}
}
main();
main().catch((err) => core.setFailed(err));