From 3a8a8801eb116b002588b5151401eaeb70197aaf Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Sun, 21 Jun 2020 12:56:02 +0900 Subject: [PATCH] fix: add return type --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 86c2b9b..24a628b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,10 +1,10 @@ import * as core from '@actions/core'; import * as main from './main'; -(async () => { +(async (): Promise => { try { await main.run(); } catch (e) { - core.setFailed(`Action failed with error ${e}`); + core.setFailed(`Action failed with error ${e.message}`); } })();