fix compilation error

This commit is contained in:
Andrei Vereha 2021-05-01 20:19:11 +02:00
parent e3f7608de7
commit b7e705b581

View file

@ -30,7 +30,8 @@ abstract class ActionViewModelBase(
onError = { throwable ->
logger.error(LTag.PUMP, "Caught exception in while executing action in ActionViewModelBase", throwable)
_isActionExecutingLiveData.postValue(false)
_actionResultLiveData.postValue(PumpEnactResult(injector).success(false).comment(throwable.message))
_actionResultLiveData.postValue(PumpEnactResult(injector).success(false).comment(
throwable.message ?: "Caught exception in while executing action in ActionViewModelBase"))
})
}