onError

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