-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
misc(create): Ignore errors removing directory after download failed #8841
Conversation
🦋 Changeset detectedLatest commit: e854639 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
ede7ae2
to
5e70159
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just left a suggestion for you to consider, @Genteure ! 🙌
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]> Co-authored-by: Nate Moore <[email protected]>
Changes
.
,./
or starts with../
.rmdirSync
after template download failed.This ensures the original "download failed" error is thrown and displayed to the user instead of a "rmdir failed" error which could be confusing.
Closes #8785
Testing
No new tests were added.
The changed function is not covered by existing tests.
Docs
No docs changes were made.
I don't think this behavior detail is worth documenting on
docs.astro.build
.