Skip to content

Commit

Permalink
fix(create-astro): improve error messages when create-astro fails (#5240
Browse files Browse the repository at this point in the history
)

Co-authored-by: Nate Moore <nate@astro.build>
  • Loading branch information
natemoo-re and natemoo-re committed Oct 28, 2022
1 parent ff4f45b commit d9be7e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-mice-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-astro': patch
---

Improve error messages when `create-astro` fails
2 changes: 2 additions & 0 deletions packages/create-astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export async function main() {
}

if (!cwd) {
ora().info(dim('No directory provided. See you later, astronaut!'))
process.exit(1);
}

Expand All @@ -163,6 +164,7 @@ export async function main() {
);

if (!options.template) {
ora().info(dim('No template provided. See you later, astronaut!'))
process.exit(1);
}

Expand Down

0 comments on commit d9be7e3

Please sign in to comment.