Files
flamenet-messenger-android/app
Paul HittandClaude Opus 5 2c22ffed75 Stop blaming the server for failures that never reached it
describeFailure had one sentence for everything it could not name: 'Something
went wrong reaching that server.' That is a claim about the network, and most
of what lands in the catch-all never touched the network.

Seen while testing the released 0.29 build on an emulator. Sign-up against a
relay that answered 200 to signup, token, device registration and identity put
that sentence on the screen. The account had been created. The person is told
to check a connection that is working, and the one action the sentence implies,
tapping again, is the one least likely to help. It is also what produced the
duplicate token request in the relay's access log.

Same shape as the relay-pin bug fixed in 80bb4c4: a specific failure arriving
as a shrug about the network, and the fix is the same. Say what is known.
RelayException.Transport now has its own branch and is the only place allowed
to blame the connection, because it is the only one that knows. The catch-all
says the failure was on this phone, and carries the cause's own sentence when
there is a readable one, refusing anything that looks like a class name.

Seven tests, falsified: restoring the old sentence turns three of them red.
App unit suite 633 green.

Not fixed here: WHY that sign-up failed locally after a 200. The message was
hiding it, and now it will say.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 15:06:38 -04:00
..
2026-09-21 14:30:46 -04:00