stop reading from url on error
This commit is contained in:
parent
1730764531
commit
e80073ff87
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ Else {
|
|||
|
||||
$stream = New-Object System.IO.StreamReader($response.GetResponseStream())
|
||||
|
||||
$stream.ReadToEnd() | Set-Content -Path $dest -Force
|
||||
$stream.ReadToEnd() | Set-Content -Path $dest -Force -ErrorAction Stop
|
||||
|
||||
$result.changed = $true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue