@@ -22,6 +22,7 @@ import bloop.engine.tasks.compilation._
22
22
import bloop .io .ParallelOps
23
23
import bloop .io .ParallelOps .CopyMode
24
24
import bloop .io .{Paths => BloopPaths }
25
+ import bloop .logging .BloopLogger
25
26
import bloop .logging .DebugFilter
26
27
import bloop .logging .Logger
27
28
import bloop .logging .LoggerAction
@@ -36,7 +37,6 @@ import bloop.tracing.BraveTracer
36
37
import monix .execution .CancelableFuture
37
38
import monix .reactive .MulticastStrategy
38
39
import monix .reactive .Observable
39
-
40
40
object CompileTask {
41
41
private implicit val logContext : DebugFilter = DebugFilter .Compilation
42
42
def compile [UseSiteLogger <: Logger ](
@@ -292,10 +292,8 @@ object CompileTask {
292
292
} else {
293
293
results.foreach {
294
294
case FinalNormalCompileResult .HasException (project, err) =>
295
- val errMsg = err.fold(identity, _.getMessage)
296
- rawLogger.error(s " Unexpected error when compiling ${project.name}: ' $errMsg' " )
297
- err.foreach(_.printStackTrace(System .err))
298
- err.foreach(rawLogger.trace(_))
295
+ val errMsg = err.fold(identity, BloopLogger .prettyPrintException)
296
+ rawLogger.error(s " Unexpected error when compiling ${project.name}: $errMsg" )
299
297
case _ => () // Do nothing when the final compilation result is not an actual error
300
298
}
301
299
0 commit comments