Skip to content

Commit

Permalink
Oops, got the semantics of subList wrong in the debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Jun 27, 2024
1 parent 3a35e53 commit a3532c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static Counter<String> getCorefResults(String resultsString) throws IOExc
if (results.keySet().isEmpty()) {
List<String> lines = StringUtils.split(resultsString, "\\R");
int start = Math.max(0, lines.size() - 20);
lines = lines.subList(start, lines.size() - start);
lines = lines.subList(start, lines.size());
String tail = StringUtils.join(lines, "\n");
throw new RuntimeException("Coref output did not have any results in it! The end of the log is as follows:\n" + tail);
}
Expand Down

0 comments on commit a3532c2

Please sign in to comment.