-
-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better error messages if artifact rename fails #3827
Conversation
IMO if you're going to include the "your antivirus might be interfering" error, it'd be nice if it printed only once. Manually renaming the artifact folder to the hash is another fix for anyone getting hit by this (e.g. |
I think I'm going to remove that warning, as it seems redundant with the:
message. |
* try rm to get better error messages * simplify changes * fix comment typo * rethrow InterruptException * Update error message * remove redundant error logging (cherry picked from commit 8b2c0f3)
(cherry picked from commit 8b2c0f3)
Looking at the code this is already on release-1.10 |
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 @xlxs4 got when testing 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)