diff --git a/elmslie-core/src/main/java/vivid/money/elmslie/core/store/Actor.kt b/elmslie-core/src/main/java/vivid/money/elmslie/core/store/Actor.kt index 4ae52096..29652f68 100644 --- a/elmslie-core/src/main/java/vivid/money/elmslie/core/store/Actor.kt +++ b/elmslie-core/src/main/java/vivid/money/elmslie/core/store/Actor.kt @@ -16,5 +16,5 @@ abstract class Actor { eventMapper: (T) -> Event? = { null }, errorMapper: (error: Throwable) -> Event? = { null }, ) = mapNotNull { eventMapper(it) } - .catch { errorMapper(it) ?: throw it } + .catch { errorMapper(it)?.let { event -> emit(event) } ?: throw it } }