|
75 | 75 | import java.util.regex.Matcher;
|
76 | 76 | import java.util.regex.Pattern;
|
77 | 77 |
|
78 |
| -import com.oracle.truffle.api.dsl.Fallback; |
79 | 78 | import org.graalvm.shadowed.com.ibm.icu.lang.UCharacter;
|
80 | 79 | import org.graalvm.shadowed.com.ibm.icu.lang.UProperty;
|
81 | 80 | import org.graalvm.shadowed.com.ibm.icu.text.CaseMap;
|
|
179 | 178 | import com.oracle.truffle.api.dsl.Cached;
|
180 | 179 | import com.oracle.truffle.api.dsl.Cached.Exclusive;
|
181 | 180 | import com.oracle.truffle.api.dsl.Cached.Shared;
|
| 181 | +import com.oracle.truffle.api.dsl.Fallback; |
182 | 182 | import com.oracle.truffle.api.dsl.GenerateCached;
|
183 | 183 | import com.oracle.truffle.api.dsl.GenerateInline;
|
184 | 184 | import com.oracle.truffle.api.dsl.GenerateNodeFactory;
|
@@ -263,7 +263,7 @@ private static TruffleString formatString(Node raisingNode, Spec spec, String st
|
263 | 263 | private static Spec getAndValidateSpec(Node inliningTarget, TruffleString formatString, PRaiseNode.Lazy raiseNode) {
|
264 | 264 | Spec spec = InternalFormat.fromText(formatString, 's', '<', inliningTarget);
|
265 | 265 | if (Spec.specified(spec.type) && spec.type != 's') {
|
266 |
| - throw raiseNode.get(inliningTarget).raise(TypeError, ErrorMessages.UNKNOWN_FORMAT_CODE, spec.type, "str"); |
| 266 | + throw raiseNode.get(inliningTarget).raise(ValueError, ErrorMessages.UNKNOWN_FORMAT_CODE, spec.type, "str"); |
267 | 267 | }
|
268 | 268 | if (Spec.specified(spec.sign)) {
|
269 | 269 | if (spec.sign == ' ') {
|
|
0 commit comments