@@ -66,7 +66,8 @@ public static TypeCheckedTag create(
66
66
if (attrIndex == null ) {
67
67
throw ExternalDepsException .withMessage (
68
68
Code .BAD_MODULE ,
69
- "in tag at %s, unknown attribute %s provided%s" ,
69
+ "in '%s' tag at %s, unknown attribute %s provided%s" ,
70
+ tag .getTagName (),
70
71
tag .getLocation (),
71
72
attrValue .getKey (),
72
73
SpellChecker .didYouMean (attrValue .getKey (), tagClass .attributeIndices ().keySet ()));
@@ -80,7 +81,8 @@ public static TypeCheckedTag create(
80
81
throw ExternalDepsException .withCauseAndMessage (
81
82
Code .BAD_MODULE ,
82
83
e ,
83
- "in tag at %s, error converting value for attribute %s" ,
84
+ "in '%s' tag at %s, error converting value for attribute %s" ,
85
+ tag .getTagName (),
84
86
tag .getLocation (),
85
87
attr .getPublicName ());
86
88
}
@@ -89,7 +91,8 @@ public static TypeCheckedTag create(
89
91
if (attr .checkAllowedValues () && !attr .getAllowedValues ().apply (nativeValue )) {
90
92
throw ExternalDepsException .withMessage (
91
93
Code .BAD_MODULE ,
92
- "in tag at %s, the value for attribute %s %s" ,
94
+ "in '%s' tag at %s, the value for attribute %s %s" ,
95
+ tag .getTagName (),
93
96
tag .getLocation (),
94
97
attr .getPublicName (),
95
98
attr .getAllowedValues ().getErrorReason (nativeValue ));
@@ -105,7 +108,8 @@ public static TypeCheckedTag create(
105
108
if (attr .isMandatory () && attrValues [i ] == null ) {
106
109
throw ExternalDepsException .withMessage (
107
110
Code .BAD_MODULE ,
108
- "in tag at %s, mandatory attribute %s isn't being specified" ,
111
+ "in '%s' tag at %s, mandatory attribute %s isn't being specified" ,
112
+ tag .getTagName (),
109
113
tag .getLocation (),
110
114
attr .getPublicName ());
111
115
}
@@ -117,10 +121,14 @@ public static TypeCheckedTag create(
117
121
attr .getPublicName (),
118
122
attrValues [i ],
119
123
String .format ("to the %s" , moduleDisplayString ),
120
- String . format ( "tag '%s'" , tag . getTagName ()) );
124
+ /* what= */ "" );
121
125
} catch (EvalException e ) {
122
126
throw ExternalDepsException .withMessage (
123
- Code .BAD_MODULE , "in tag at %s: %s" , tag .getLocation (), e .getMessage ());
127
+ Code .BAD_MODULE ,
128
+ "in '%s' tag at %s: %s" ,
129
+ tag .getTagName (),
130
+ tag .getLocation (),
131
+ e .getMessage ());
124
132
}
125
133
}
126
134
return new TypeCheckedTag (
0 commit comments