Skip to content

Commit a6d2a86

Browse files
committed
Log specific error even if it is not an Error
1 parent 4b591cc commit a6d2a86

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export async function run(): Promise<void> {
9494
if (error instanceof Error) {
9595
core.setFailed(error.message)
9696
} else {
97-
core.setFailed('An unexpected error occurred')
97+
core.setFailed(`An unexpected error occurred: ${JSON.stringify(error)}`)
9898
}
9999
}
100100
}

0 commit comments

Comments
 (0)