Skip to content

Commit 0d68336

Browse files
authored
fix(gatsby-cli): Improve wording for 98124 error message (#24186)
1 parent 96aefa5 commit 0d68336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-cli/src/structured-errors/error-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const errors = {
4242
},
4343
"98124": {
4444
text: (context): string =>
45-
`${context.stageLabel} failed\n\n${context.sourceMessage}\n\nPerhaps you need to install the package '${context.packageName}'?`,
45+
`${context.stageLabel} failed\n\n${context.sourceMessage}\n\nIf you're trying to use a package make sure that '${context.packageName}' is installed. If you're trying to use a local file make sure that the path is correct.`,
4646
type: Type.WEBPACK,
4747
level: Level.ERROR,
4848
},

0 commit comments

Comments
 (0)