onApiErrorOrError

inline fun <T> ApiResult<T>.onApiErrorOrError(function: () -> Unit): ApiResult<T>