Handle NONE errorReason in onResponseTraceRoute and add regression test

ROUTING_APP with errorReason NONE is an ACK (success), not an error.
Only print failure message for non-NONE error reasons.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Nox
2026-06-04 21:03:49 +08:00
parent c71d3df332
commit 953d01206b
2 changed files with 22 additions and 1 deletions

View File

@@ -689,7 +689,8 @@ class MeshInterface: # pylint: disable=R0902
"""on response for trace route"""
if p["decoded"]["portnum"] == "ROUTING_APP":
error = p["decoded"]["routing"]["errorReason"]
print(f"Traceroute failed: {error}")
if error != "NONE":
print(f"Traceroute failed: {error}")
self._acknowledgment.receivedTraceRoute = True
return