From e9bc504cf71e5848c69036714d196b2957571144 Mon Sep 17 00:00:00 2001 From: Tobias Roeser Date: Wed, 20 Sep 2023 10:02:13 +0200 Subject: [PATCH] Fixed a success match in BSP buildTargetRun handler (#2771) Pull request: https://github.com/com-lihaoyi/mill/pull/2771 --- bsp/worker/src/mill/bsp/worker/MillBuildServer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala b/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala index 1ea291f3c5d..e03d587a95c 100644 --- a/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala +++ b/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala @@ -478,7 +478,7 @@ private class MillBuildServer( logger = new MillBspLogger(client, runTask.hashCode(), ev.baseLogger) ) val response = runResult.results(runTask) match { - case _: Result.Success[Any] => new RunResult(StatusCode.OK) + case r if r.result.asSuccess.isDefined => new RunResult(StatusCode.OK) case _ => new RunResult(StatusCode.ERROR) } params.getOriginId match {