mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2024-11-26 05:13:04 +07:00
Fix type error in catch block
This commit is contained in:
parent
1ff57057b5
commit
a7a75759e9
@ -128,7 +128,11 @@ async function run(): Promise<void> {
|
||||
core.addPath(toolFolderPath)
|
||||
core.debug(`Tool path added to PATH: ${toolFolderPath}`)
|
||||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
core.setFailed(error.message)
|
||||
} else {
|
||||
core.setFailed('Unknown error')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user