You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not easy to get an exception from the copy task. I disconnected network for ~1 minutes and restore it. Original cmdlet waits some seconds and silently stop with semi-downloaded file. With the change (without catching AggregateException) user get follow error:
I think it is right behavior and we should remove the regression.
Expected behavior
Throw an exception if download fails.
Actual behavior
Does not throw an exception if download fails.
Error details
No response
Environment data
Name Value
---------
PSVersion 7.2.6
PSEdition Core
GitCommitId 7.2.6
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Prerequisites
Steps to reproduce
For context,
See detailed analysis here: #17896 (comment)
See @iSazonov 's comment #17896 (comment)
Expected behavior
Throw an exception if download fails.
Actual behavior
Does not throw an exception if download fails.
Error details
No response
Environment data