chore: treat caught error as unknown
This commit is contained in:
1 parent
c0bf818478
commit
3268a385e5
3 files changed
+7
-7
No files matched your search
+1
-1
@@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user