diff --git a/.changeset/chilly-mice-agree.md b/.changeset/chilly-mice-agree.md new file mode 100644 index 000000000000..b4b21263d22d --- /dev/null +++ b/.changeset/chilly-mice-agree.md @@ -0,0 +1,5 @@ +--- +'create-astro': patch +--- + +Improve error messages when `create-astro` fails diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index 16ac7e402261..9be3e4ff9098 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -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); }