diff --git a/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala b/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala index 057fb19d19d..d9faefe8981 100644 --- a/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala +++ b/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala @@ -772,7 +772,7 @@ class MillBuildServer( log.debug(s"Entered ${hint}") val start = System.currentTimeMillis() def took = - log.debug(s"${hint.split("[ ]").head} took ${System.currentTimeMillis() - start} msec") + log.debug(s"${hint.split(" ").head} took ${System.currentTimeMillis() - start} msec") val future = new CompletableFuture[V]() @@ -783,14 +783,14 @@ class MillBuildServer( } else { try { val v = f - log.debug(s"${hint.split("[ ]").head} result: ${v}") took + log.debug(s"${hint.split(" ").head} result: ${v}") future.complete(v) } catch { case e: Exception => - logStream.println(s"Caugh exception: ${e}") - e.printStackTrace(logStream) took + logStream.println(s"Caught exception: ${e}") + e.printStackTrace(logStream) future.completeExceptionally(e) } }