Skip to content

Commit

Permalink
Fix error summary printed twice
Browse files Browse the repository at this point in the history
  • Loading branch information
adpi2 authored and olsdavis committed Apr 4, 2022
1 parent 3b10660 commit a5cc262
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 a5cc262

Please sign in to comment.