We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fc0762 commit ddc9459Copy full SHA for ddc9459
TOOL-Resolve-ShortURL/Resolve-ShortURL.ps1
@@ -37,7 +37,7 @@ function Resolve-ShortURL {
37
(Invoke-WebRequest -Uri $URL -MaximumRedirection 0 -ErrorAction Ignore).Headers.Location
38
}
39
CATCH {
40
- Write-Error -Message $Error[0].Exception.Message
+ $PSCmdlet.ThrowTerminatingError($_)
41
42
43
0 commit comments