diff --git a/hello-world/src/main.ts b/hello-world/src/main.ts index 2a375d29..8ecb9563 100644 --- a/hello-world/src/main.ts +++ b/hello-world/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) +})