stop reading from url on error
parent
9c6d829991
commit
64f19fc4c6
|
@ -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 New Issue