Skip to content

Commit

Permalink
Show stacktrace on error (int128#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Aug 14, 2023
1 parent 2ef1dac commit 75c1a5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ const main = async (): Promise<void> => {
})
}

main().catch((e) => core.setFailed(e instanceof Error ? e : String(e)))
main().catch((e: Error) => {
core.setFailed(e)
console.error(e)
})

0 comments on commit 75c1a5b

Please sign in to comment.