File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/com/google/devtools/build/lib/bazel/bzlmod Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 3434import net .starlark .java .eval .StarlarkList ;
3535import net .starlark .java .eval .StarlarkValue ;
3636import net .starlark .java .eval .Structure ;
37+ import net .starlark .java .spelling .SpellChecker ;
3738
3839/** A Starlark object representing a Bazel module in the external dependency graph. */
3940@ StarlarkBuiltin (
@@ -118,10 +119,11 @@ public static StarlarkBazelModule create(
118119 throw ExternalDepsException .withMessage (
119120 Code .BAD_MODULE ,
120121 "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 " ,
122123 extension .getLocation (),
123124 tag .getTagName (),
124- tag .getLocation ());
125+ tag .getLocation (),
126+ SpellChecker .didYouMean (tag .getTagName (), extension .getTagClasses ().keySet ()));
125127 }
126128
127129 // 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