From 32e33dcd3ae1d0cf56ac5a88267de6cbf0359353 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Tue, 17 Jan 2023 23:04:25 +0900 Subject: [PATCH] fix: fix error handling (#841) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f33da0221..36f056183 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,7 @@ import * as main from './main'; if (error instanceof Error) { core.setFailed(`Action failed with "${error.message}"`); } else { - throw new Error('unexpected error'); + core.setFailed('unexpected error'); } } })();