Failure to cleanup masks real error when creating new project #8785
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
needs response
Issue needs response from OP
pkg: create-astro
Related to the `create-astro` package (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
My workflow for creating new projects is:
When
pnpm create astro@latest
fails to download the template, it throws a unhelpful error:This error is not the real reason why it failed, it also brings question of "why are you trying to delete my directory?"
Reproduction steps:
mkdir repro && code repro && cd repro
,code repro
can also be any other ways to lock the directory.127.0.0.1 api.github.com
to yourhosts
file, OR$env:HTTPS_PROXY="http://127.0.0.1:123456789"
, OR unplug your ethernet cable.pnpm create astro
or it's equivalent..
when answering "Where should we create your new project?"What's the expected result?
I would expect failure to cleanup be ignored, and the real reason it failed is written to the terminal.
astro/packages/create-astro/src/actions/template.ts
Lines 88 to 102 in 90d70eb
Link to Minimal Reproducible Example
N/A
Participation
The text was updated successfully, but these errors were encountered: