Commit 3c1c0c0 1 parent 81f3121 commit 3c1c0c0 Copy full SHA for 3c1c0c0
File tree 1 file changed +4
-2
lines changed
src/main/java/com/google/devtools/build/lib/bazel/bzlmod
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 34
34
import net .starlark .java .eval .StarlarkList ;
35
35
import net .starlark .java .eval .StarlarkValue ;
36
36
import net .starlark .java .eval .Structure ;
37
+ import net .starlark .java .spelling .SpellChecker ;
37
38
38
39
/** A Starlark object representing a Bazel module in the external dependency graph. */
39
40
@ StarlarkBuiltin (
@@ -118,10 +119,11 @@ public static StarlarkBazelModule create(
118
119
throw ExternalDepsException .withMessage (
119
120
Code .BAD_MODULE ,
120
121
"The module extension defined at %s does not have a tag class named %s, but its use is"
121
- + " attempted at %s" ,
122
+ + " attempted at %s%s " ,
122
123
extension .getLocation (),
123
124
tag .getTagName (),
124
- tag .getLocation ());
125
+ tag .getLocation (),
126
+ SpellChecker .didYouMean (tag .getTagName (), extension .getTagClasses ().keySet ()));
125
127
}
126
128
127
129
// Now we need to type-check the attribute values and convert them into "build language types"
You can’t perform that action at this time.
0 commit comments