fix(create-astro): improve error messages when create-astro fails (#5240)

Co-authored-by: Nate Moore <nate@astro.build>
This commit is contained in:
Nate Moore 2022-10-28 14:05:46 -05:00 committed by GitHub
parent ff4f45b8eb
commit d9be7e36b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'create-astro': patch
---
Improve error messages when `create-astro` fails

View file

@ -147,6 +147,7 @@ export async function main() {
}
if (!cwd) {
ora().info(dim('No directory provided. See you later, astronaut!'))
process.exit(1);
}
@ -163,6 +164,7 @@ export async function main() {
);
if (!options.template) {
ora().info(dim('No template provided. See you later, astronaut!'))
process.exit(1);
}