diff --git a/src/index.ts b/src/index.ts index 32c775b..32814ff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -64,8 +64,9 @@ export async function run(): Promise { const catchAll = (info: any) => { core.setFailed(`#catchAll: ${info}`); + core.error(info); }; process.on('unhandledRejection', catchAll); process.on('uncaughtException', catchAll); -run(); +run().catch(core.error);