src/Pure/Tools/build_job.scala
changeset 72726 ec6a27bbdab8
parent 72725 27d9aa2a4010
child 72730 01c9b3033036
--- a/src/Pure/Tools/build_job.scala	Thu Nov 26 16:19:55 2020 +0100
+++ b/src/Pure/Tools/build_job.scala	Thu Nov 26 16:51:40 2020 +0100
@@ -263,10 +263,9 @@
             task_statistics.toList.map(Protocol.Task_Statistics_Marker.apply) :::
             document_output
 
-        val more_errors =
-          Library.trim_line(stderr.toString) :: export_errors ::: document_errors
-
-        process_result.output(more_output).errors(more_errors)
+        process_result.output(more_output)
+          .error(Library.trim_line(stderr.toString))
+          .errors_rc(export_errors ::: document_errors)
       }
 
       build_errors match {