windows: Two simple errors using Add-Warning (#25955)

pull/26123/head
Dag Wieers 7 years ago committed by Jordan Borean
parent 0dddae7ffa
commit 74efda65cd

@ -421,7 +421,7 @@ If ($state -eq "present") {
}
If ($insertbefore -and $insertafter) {
Add-Warning('Both insertbefore and insertafter parameters found, ignoring "insertafter=$insertafter"');
Add-Warning $result "Both insertbefore and insertafter parameters found, ignoring `"insertafter=$insertafter`""
}
If (-not $insertbefore -and -not $insertafter) {

@ -45,7 +45,7 @@ if ($diff_support) {
# Fix HCCC:\ PSDrive for pre-2.3 compatibility
if ($path -match "^HCCC:\\") {
Add-Warning("Please use path: HKCC:\... instead of path: $path")
Add-Warning $result "Please use path: HKCC:\... instead of path: $path"
$path = $path -replace "HCCC:\\","HKCC:\\"
}

Loading…
Cancel
Save