onError

inline fun <D, E> Resource<D, E>.onError(onError: (E) -> Unit): Resource<D, E>