diff --git a/sbt-bridge/src/dotty/tools/xsbt/CompilerBridgeDriver.java b/sbt-bridge/src/dotty/tools/xsbt/CompilerBridgeDriver.java index 6c622063a141..12291120b157 100644 --- a/sbt-bridge/src/dotty/tools/xsbt/CompilerBridgeDriver.java +++ b/sbt-bridge/src/dotty/tools/xsbt/CompilerBridgeDriver.java @@ -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");