Skip to content

Commit

Permalink
make it a bit more readable hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Jan 10, 2024
1 parent 70a4ee2 commit 03b74f2
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ private static void equivalencesLine(String line, ParsePosition pp, int lineNumb
println(errorLine);
}
errorMessage.addAll(counterexamples);
reportTestFailure(lineNumber, String.join("\n", errorMessage));
reportTestFailure(lineNumber, String.join("\n", errorMessage).replace('\t', ' '));
out.println(failure ? "<table class='f'>" : "<table>");
for (String counterexample : counterexamples) {
out.println("<tr><td>");
Expand Down Expand Up @@ -1073,10 +1073,8 @@ private static int parseError(int parseErrorCount, String line, Exception e, int
if (message != null) {
println("##" + message);
}
reportParseError(lineNumber, message);
e.printStackTrace(out);
StringWriter w = new StringWriter().append(message).append('\n');
e.printStackTrace(new PrintWriter(w));
reportParseError(lineNumber, w.toString());

out.println("</pre>");
printErrorLine("Parse Error", Side.END, parseErrorCount);
Expand Down

0 comments on commit 03b74f2

Please sign in to comment.