fix(tui): classify safedial "failed to connect" as TCP
CI / test (pull_request) Successful in 2m29s
CI / lint (pull_request) Successful in 56s
CI / vulncheck (pull_request) Successful in 51s
CI / test (push) Successful in 2m41s
CI / lint (push) Successful in 56s
CI / vulncheck (push) Successful in 51s

Error from safedial.go fell through to ErrCatUnknown, showing plain
DOWN instead of DOWN:TCP.
This commit was merged in pull request #54.
This commit is contained in:
2026-06-03 17:24:31 -04:00
parent c25614c098
commit c0ad51af9c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -43,6 +43,7 @@ func TestClassifyError(t *testing.T) {
{"connection reset by peer", "http", 0, ErrCatTCP},
{"dial tcp: no route to host", "http", 0, ErrCatTCP},
{"network unreachable", "http", 0, ErrCatTCP},
{"failed to connect to 10.0.0.1:443", "http", 0, ErrCatTCP},
// HTTP
{"HTTP 500 (expected 200-299)", "http", 500, ErrCatHTTP},