Unverified Commit caca389c authored by Anindya Dey's avatar Anindya Dey Committed by GitHub

fix error message during create-next-app (#26980)

Fixes [issue #19588](https://github.com/vercel/next.js/issues/19588)

Here's a screenshot of the error message:
![image](https://user-images.githubusercontent.com/30517208/124733436-d1babd80-df31-11eb-96e4-513505ba07a0.png)
parent 1dd19f57
...@@ -89,7 +89,11 @@ export async function createApp({ ...@@ -89,7 +89,11 @@ export async function createApp({
console.error( console.error(
`Could not locate an example named ${chalk.red( `Could not locate an example named ${chalk.red(
`"${example}"` `"${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) process.exit(1)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment