fix(create-astro): improve error messages when create-astro fails (#5240)
Co-authored-by: Nate Moore <nate@astro.build>
This commit is contained in:
parent
ff4f45b8eb
commit
d9be7e36b8
2 changed files with 7 additions and 0 deletions
5
.changeset/chilly-mice-agree.md
Normal file
5
.changeset/chilly-mice-agree.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'create-astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Improve error messages when `create-astro` fails
|
|
@ -147,6 +147,7 @@ export async function main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cwd) {
|
if (!cwd) {
|
||||||
|
ora().info(dim('No directory provided. See you later, astronaut!'))
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,6 +164,7 @@ export async function main() {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!options.template) {
|
if (!options.template) {
|
||||||
|
ora().info(dim('No template provided. See you later, astronaut!'))
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue