chore: treat caught error as unknown

This commit is contained in:
Kengo TODA
2021-08-29 14:37:54 +08:00
committed by probot-auto-merge[bot]
parent c0bf818478
commit 3268a385e5
3 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ async function run(): Promise<void> {
const commandPath = await install(version)
core.addPath(commandPath)
} catch (error) {
core.setFailed(error.message)
core.setFailed(error instanceof Error ? error.message : 'Unknown error')
}
}