onFailure

infix inline fun <V, E> Result<V, E>.onFailure(action: (E) -> Unit): Result<V, E>

Invokes an action if this Result is Err.