fix: Correct error message formatting in Install-Dependencies.ps1
This commit is contained in:
parent
102b25d972
commit
8384c27b04
@ -23,7 +23,7 @@ foreach ($module in $graphModules) {
|
|||||||
Write-Host "$module module installed successfully" -ForegroundColor Green
|
Write-Host "$module module installed successfully" -ForegroundColor Green
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host "Failed to install $module: ${_}" -ForegroundColor Red
|
Write-Host "Failed to install $module: $($_.Exception.Message)" -ForegroundColor Red
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -43,7 +43,7 @@ if (-not (Get-Module -ListAvailable -Name DocumentFormat.OpenXml)) {
|
|||||||
Write-Host "DocumentFormat.OpenXml module installed successfully" -ForegroundColor Green
|
Write-Host "DocumentFormat.OpenXml module installed successfully" -ForegroundColor Green
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host "Failed to install $module: ${_}" -ForegroundColor Red
|
Write-Host "Failed to install DocumentFormat.OpenXml module: $($_.Exception.Message)" -ForegroundColor Red
|
||||||
Write-Host "You may need to install the Open XML SDK manually." -ForegroundColor Yellow
|
Write-Host "You may need to install the Open XML SDK manually." -ForegroundColor Yellow
|
||||||
# Do not exit, as the application might still work if the assembly is in the GAC or a known path
|
# Do not exit, as the application might still work if the assembly is in the GAC or a known path
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user