Change output info from 'Write-Warning' to 'Write-Host' to make sure it's displayed even in RunSpaces as well as PowerShell 5 Environments

This commit is contained in:
Mr.k
2024-08-26 17:11:15 +03:00
parent 8ccde4fa59
commit cea227fd63
2 changed files with 6 additions and 6 deletions

View File

@ -65,8 +65,8 @@ function Set-WinUtilUITheme {
}
}
catch {
Write-Debug "[Set-WinUtilTheme] Unable to apply theme"
Write-Debug $psitem.Exception.Message
Write-Host "[Set-WinUtilTheme] Unable to apply theme" -ForegroundColor Red
Write-Host "$($psitem.Exception.Message)" -ForegroundColor Red
$inputXML = "" # Make inputXML equal an empty string, indicating something went wrong to the function caller.
}