Skip to content

Commit

Permalink
fix(create-astro): improve error messages when create-astro fails
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Oct 28, 2022
1 parent e35bc26 commit 360faa5
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 360faa5

Please sign in to comment.