doOnAfterError

fun <T> Single<T>.doOnAfterError(consumer: (Throwable) -> Unit): Single<T>

Calls the consumer with the emitted Throwable when the Single signals onError. The consumer is called after the observer is called.