diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 5dfb393..d8083c6 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -687,6 +687,12 @@ class MeshInterface: # pylint: disable=R0902 def onResponseTraceRoute(self, p: dict): """on response for trace route""" + if p["decoded"]["portnum"] == "ROUTING_APP": + error = p["decoded"]["routing"]["errorReason"] + print(f"Traceroute failed: {error}") + self._acknowledgment.receivedTraceRoute = True + return + UNK_SNR = -128 # Value representing unknown SNR routeDiscovery = mesh_pb2.RouteDiscovery()