From 8ba9d2b75c6fee37ab14af4de7c4fda4bde4891b Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Wed, 20 Apr 2016 12:11:44 +0200 Subject: [PATCH] minor: Fix daemon client diagnostic --- .../org/jetbrains/kotlin/daemon/client/KotlinCompilerClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/KotlinCompilerClient.kt b/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/KotlinCompilerClient.kt index c877048b187..1407b8a22f0 100644 --- a/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/KotlinCompilerClient.kt +++ b/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/KotlinCompilerClient.kt @@ -220,7 +220,7 @@ object KotlinCompilerClient { val res = daemon.remoteCompile(CompileService.NO_SESSION, CompileService.TargetPlatform.JVM, filteredArgs.toList().toTypedArray(), servicesFacade, outStrm, CompileService.OutputFormat.PLAIN, outStrm, null) val endTime = System.nanoTime() - println("Compilation result code: $res") + println("Compilation ${if (res.isGood) "succeeded" else "failed"}, result code: ${res.get()}") val memAfter = daemon.getUsedMemory().get() / 1024 println("Compilation time: " + TimeUnit.NANOSECONDS.toMillis(endTime - startTime) + " ms") println("Used memory $memAfter (${"%+d".format(memAfter - memBefore)} kb)")