fix: Correct variable reference in error message for OpenXml module installation

This commit is contained in:
Bobby Abellana (aider) 2025-02-21 10:29:17 -08:00
parent be054b19c8
commit 102b25d972

View File

@ -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 DocumentFormat.OpenXml module: ${_}" -ForegroundColor Red Write-Host "Failed to install $module: ${_}" -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
} }