We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9889c73 commit 665aed4Copy full SHA for 665aed4
1 file changed
src/main/java/io/vertx/uritemplate/impl/UriTemplateImpl.java
@@ -318,8 +318,9 @@ public static class Parser {
318
319
public UriTemplateImpl parseURITemplate(String s) {
320
template = new UriTemplateImpl();
321
- if (parseURITemplate(s, 0) != s.length()) {
322
- throw new IllegalArgumentException();
+ int stop = parseURITemplate(s, 0);
+ if (stop != s.length()) {
323
+ throw new IllegalArgumentException("Error parsing template at position: " + stop);
324
}
325
for (Term term : template.terms) {
326
if (term instanceof Expression && ((Expression) term).operator == Operator.FUTURE) {
0 commit comments