chore: treat caught error as unknown

This commit is contained in:
Kengo TODA authored and probot-auto-merge[bot] committed 2021-08-29 06:39:28 +00:00
1 parent c0bf818478
commit 3268a385e5
3 files changed
+7 -7

No files matched your search

+1 -1
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')
}
}