feat: warn user when MqttClientProxy fails

This commit is contained in:
andrekir 2023-10-12 22:57:45 -03:00
parent 8d22a23fe1
commit 7b3f71ae32

View file

@ -1401,7 +1401,7 @@ class MeshService : Service(), Logging {
mqttMessageFlow = mqttRepository.proxyMessageFlow.onEach { message ->
sendToRadio(ToRadio.newBuilder().apply { mqttClientProxyMessage = message })
}.catch { throwable ->
errormsg("MqttClientProxy failed: $throwable")
radioInterfaceService.setErrorMessage("MqttClientProxy failed: $throwable")
}.launchIn(serviceScope)
}
}