This PR should improve error messages if an anti-virus prevents the temporary directory the artifact is unpacked into from being renamed or deleted. Ref #3822
The issue is that an error that occurs in a finally after a try and catch hides any error that occurred in the try.
The following is the message I get when I simulate rm and rename failing on Linux with this PR:
This PR should improve error messages if an anti-virus prevents the temporary directory the artifact is unpacked into from being renamed or deleted. Ref #3822
The issue is that an error that occurs in a
finally
after atry
andcatch
hides any error that occurred in thetry
.The following is the message I get when I simulate rm and rename failing on Linux with this PR:
Here is what this kind of error would look like before this PR (from https://discourse.julialang.org/t/installation-of-nodejs-fails-directory-not-empty/111117)