Skip to content

Commit

Permalink
Better logging for invalid URLs
Browse files Browse the repository at this point in the history
As described in majkinetor#204 we need to know what parameter was responsible for the invalid URL message.
  • Loading branch information
DennisGaida authored Jan 27, 2020
1 parent 0cd87ae commit b575f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AU/Public/Update-Package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function Update-Package {
"URL check" | result
$Latest.Keys | ? {$_ -like 'url*' } | % {
$url = $Latest[ $_ ]
if ($res = check_url $url -Options $Latest.Options) { throw "${res}:$url" } else { " $url" | result }
if ($res = check_url $url -Options $Latest.Options) { throw "${res}: '$url' ($_)" } else { " $url" | result }
}
}

Expand Down

0 comments on commit b575f69

Please sign in to comment.