[platform] skipping invalid patterns when processing the Defender exclusion list; improving diagnostics (IJPL-37118)

GitOrigin-RevId: 44068fea0f2e12f8dc66169638734fa47a1f0a3d
This commit is contained in:
Roman Shevchenko
2024-09-03 11:25:15 +02:00
committed by intellij-monorepo-bot
parent e745cbf271
commit 08f643e0c7

View File

@@ -29,6 +29,7 @@ try {
}
} catch [System.Management.Automation.ItemNotFoundException] {
} catch [System.Management.Automation.DriveNotFoundException] {
} catch [System.Management.Automation.WildcardPatternException] {
}
}
@@ -51,7 +52,7 @@ try {
Set-MpPreference -ExclusionPath $exclusions
} catch {
Write-Host $_.Exception.Message
Write-Host "$($_.Exception.GetType()): $($_.Exception.Message)"
Write-Host $_.ScriptStackTrace
exit 1
}