onFailure

inline fun onFailure(action: (SolidError) -> Unit): SolidResult<T>

Runs action on the error and returns this result unchanged.