We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf0b74 commit 70dc9e6Copy full SHA for 70dc9e6
dot-parse/src/main/java/com/google/common/labs/parse/Parser.java
@@ -1551,7 +1551,7 @@ <V> MatchResult.Failure<V> expecting(String name, int at) {
1551
<V> MatchResult.Failure<V> failAt(int at, String message, Object... args) {
1552
var failure = new MatchResult.Failure<V>(at, message, args);
1553
// prefer the farthest then the most recent failure
1554
- if (farthestFailure == null || at >= farthestFailure.at()) {
+ if (farthestFailure == null || failure.at() >= farthestFailure.at()) {
1555
farthestFailure = failure;
1556
}
1557
return failure;
0 commit comments