Skip to content

Commit caca389

Browse files
authored
fix error message during create-next-app (#26980)
Fixes [issue #19588](#19588) Here's a screenshot of the error message: ![image](https://user-images.githubusercontent.com/30517208/124733436-d1babd80-df31-11eb-96e4-513505ba07a0.png)
1 parent 1dd19f5 commit caca389

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/create-next-app/create-app.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ export async function createApp({
8989
console.error(
9090
`Could not locate an example named ${chalk.red(
9191
`"${example}"`
92-
)}. Please check your spelling and try again.`
92+
)}. It could be due to the following:\n`,
93+
`1. Your spelling of example ${chalk.red(
94+
`"${example}"`
95+
)} might be incorrect.\n`,
96+
`2. You might not be connected to the internet.`
9397
)
9498
process.exit(1)
9599
}

0 commit comments

Comments
 (0)