Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
show error instead of config when repeating
Browse files Browse the repository at this point in the history
  • Loading branch information
majkinetor committed May 21, 2017
1 parent 7685b5c commit 6f66fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AU/Public/Update-AUPackages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6f66fc9

Please sign in to comment.