Skip to content

Commit

Permalink
Merge pull request #13843 from adpi2/fix-print-summary
Browse files Browse the repository at this point in the history
Fix error summary printed twice
  • Loading branch information
smarter authored Nov 1, 2021
2 parents adcbfd0 + fee17de commit 49b6c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbt-bridge/src/dotty/tools/xsbt/CompilerBridgeDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ public int compare(VirtualFile x0, VirtualFile x1) {
callback.problem(problem.category(), problem.position(), problem.message(), problem.severity(),
true);
}
} else {
delegate.printSummary();
}

delegate.printSummary();

if (delegate.hasErrors()) {
log.debug(() -> "Compilation failed");
throw new InterfaceCompileFailed(args, delegate.problems(), "Compilation failed");
Expand Down

0 comments on commit 49b6c08

Please sign in to comment.