Skip to content

Commit

Permalink
UX
Browse files Browse the repository at this point in the history
  • Loading branch information
Krystian Panek committed Mar 2, 2020
1 parent 98809d5 commit 7bbf21c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 7bbf21c

Please sign in to comment.