fun statusFromThrowable()

in src/main/kotlin/rules_intellij/indexing/IndexingService.kt [19:25]


fun statusFromThrowable(e: Throwable): StatusException {
    var sts = Status.fromThrowable(e)
    if (sts.description?.isEmpty() != false) {
        sts = Status.UNKNOWN.withDescription(e.message)
    }
    return StatusException(sts)
}