Skip to content

Commit e96c896

Browse files
authored
Makes an error message clearer (#4175)
1 parent 916d9f2 commit e96c896

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/reporters/lang/en.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ const messages = {
6363

6464
couldntFindPackagejson: "Couldn't find a package.json file in $0",
6565
couldntFindMatch: "Couldn't find match for $0 in $1 for $2.",
66-
couldntFindPackageInCache: "Couldn't find any versions for $0 that matches $1 in our cache. Possible versions: $2",
66+
couldntFindPackageInCache:
67+
"Couldn't find any versions for $0 that matches $1 in our cache (possible versions are $2). This is usually caused by a missing entry in the lockfile, running Yarn without the --offline flag may help fix this issue.",
6768
couldntFindVersionThatMatchesRange: "Couldn't find any versions for $0 that matches $1",
6869
chooseVersionFromList: 'Please choose a version of $0 from this list:',
6970
moduleNotInManifest: "This module isn't specified in a manifest.",

0 commit comments

Comments
 (0)