From ffe382d873de1488c9d8b34374e7754c9f39c3f7 Mon Sep 17 00:00:00 2001 From: Hidetake Iwata Date: Mon, 14 Aug 2023 11:08:59 +0900 Subject: [PATCH] Show stacktrace on error (#580) --- src/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 2a375d2..8ecb956 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,4 +7,7 @@ const main = async (): Promise => { }) } -main().catch((e) => core.setFailed(e instanceof Error ? e : String(e))) +main().catch((e: Error) => { + core.setFailed(e) + console.error(e) +})