Skip to content

Commit ecca49f

Browse files
authored
Show stacktrace on error (#621)
1 parent 31bcf96 commit ecca49f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hello-world/src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ const main = async (): Promise<void> => {
77
})
88
}
99

10-
main().catch((e) => core.setFailed(e instanceof Error ? e : String(e)))
10+
main().catch((e: Error) => {
11+
core.setFailed(e)
12+
console.error(e)
13+
})

0 commit comments

Comments
 (0)