From 8a3dba24548ad834d8101d7f0546aae8db249a27 Mon Sep 17 00:00:00 2001 From: Anindya Dey Date: Wed, 7 Jul 2021 14:31:14 +0530 Subject: [PATCH] fix error message during create-next-app --- packages/create-next-app/create-app.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/create-next-app/create-app.ts b/packages/create-next-app/create-app.ts index c309ea5691458..3a40c37db2fc2 100644 --- a/packages/create-next-app/create-app.ts +++ b/packages/create-next-app/create-app.ts @@ -89,7 +89,11 @@ export async function createApp({ console.error( `Could not locate an example named ${chalk.red( `"${example}"` - )}. Please check your spelling and try again.` + )}. It could be due to the following:\n`, + `1. Your spelling of example ${chalk.red( + `"${example}"` + )} might be incorrect.\n`, + `2. You might not be connected to the internet.` ) process.exit(1) }