From ccaeebddd757cf32be8dcba9b1fc267cd9987e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teguayco=20Guti=C3=A9rrez?= Date: Tue, 14 Nov 2023 12:43:53 +0100 Subject: [PATCH] Replace Write-Error with Write-Warning when retrying in Invoke-Analyzer.ps1 --- Lombiq.Analyzers.PowerShell/Invoke-Analyzer.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lombiq.Analyzers.PowerShell/Invoke-Analyzer.ps1 b/Lombiq.Analyzers.PowerShell/Invoke-Analyzer.ps1 index dd6657b..53ed5b4 100644 --- a/Lombiq.Analyzers.PowerShell/Invoke-Analyzer.ps1 +++ b/Lombiq.Analyzers.PowerShell/Invoke-Analyzer.ps1 @@ -135,7 +135,7 @@ $results = Find-Recursively -IncludeFile '*.ps1', '*.psm1', '*.psd1' -ExcludeDir } else { - Write-Error "Retry #$($retryCount + 1): An exception occurred: $_. Retrying..." + Write-Warning "Retry #$($retryCount + 1): An exception occurred: $_. Retrying..." } } }