mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2024-11-22 19:41:07 +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