onError

inline fun <T, E : Error> Result<T, E>.onError(action: (E) -> Unit): Result<T, E>