From 6f66fc92c2b4c24cfc5ab46c83fac42e1bc10e19 Mon Sep 17 00:00:00 2001 From: Miodrag Milic Date: Sun, 21 May 2017 18:39:11 +0200 Subject: [PATCH] show error instead of config when repeating --- AU/Public/Update-AUPackages.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AU/Public/Update-AUPackages.ps1 b/AU/Public/Update-AUPackages.ps1 index 9800722e..61cc07b3 100644 --- a/AU/Public/Update-AUPackages.ps1 +++ b/AU/Public/Update-AUPackages.ps1 @@ -183,7 +183,7 @@ function Update-AUPackages { if ($run_no -ne $run_max) { foreach ($msg in $Options.RepeatOn) { if ($_.Exception -notlike "*${msg}*") { continue } - Write-Warning "Repeating $using:package_name ($run_no): $msg" + Write-Warning "Repeating $using:package_name ($run_no): $($_.Exception)" if ($Options.RepeatSleep) { Write-Warning "Sleeping $($Options.RepeatSleep) seconds before repeating"; sleep $Options.RepeatSleep } continue main }