From 7bbf21c92c90b33456facea81eb1259458eedf8d Mon Sep 17 00:00:00 2001 From: Krystian Panek Date: Mon, 2 Mar 2020 10:14:08 +0100 Subject: [PATCH] UX --- .../com/cognifide/gradle/environment/health/HealthStatus.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/cognifide/gradle/environment/health/HealthStatus.kt b/src/main/kotlin/com/cognifide/gradle/environment/health/HealthStatus.kt index 5f434cd..3ace687 100644 --- a/src/main/kotlin/com/cognifide/gradle/environment/health/HealthStatus.kt +++ b/src/main/kotlin/com/cognifide/gradle/environment/health/HealthStatus.kt @@ -6,9 +6,9 @@ class HealthStatus(val check: HealthCheck, val cause: Exception? = null) { val status: String get() = when (cause) { - null -> "OK" - else -> "FAIL | ${cause.message}" + null -> "[+] $check" + else -> "[-] $check | ${cause.message}" } - override fun toString() = "$check | $status".trim() + override fun toString() = status.trim() }