diff options
| author | Christian Cleberg <[email protected]> | 2026-04-13 17:41:34 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-13 17:41:34 -0500 |
| commit | b423f8a1cf3141d0b15ee899c1c5fe535ff982e9 (patch) | |
| tree | 7cd72192d3d6f568e4c50860caa0cbc843b53811 /Hutch/Views/SystemStatus/SystemStatusView.swift | |
| parent | 30decf6d9b6b95277cbd8b8a7d9e23d9ce5413ca (diff) | |
| download | hutch-b423f8a1cf3141d0b15ee899c1c5fe535ff982e9.tar.gz hutch-b423f8a1cf3141d0b15ee899c1c5fe535ff982e9.tar.bz2 hutch-b423f8a1cf3141d0b15ee899c1c5fe535ff982e9.zip | |
fix: suppress false "network request failed" error on ticket list scroll
When scrolling through a large tracker, SwiftUI's .task modifier cancels
in-flight pagination requests as rows leave the screen. URLSession
responds with URLError(-999), which was being surfaced to the user as
"The network request failed. Please try again." — even though the
cancellation is expected and benign.
Guard against Task.isCancelled in the catch block so cancellations are
silently ignored; isLoadingMore is still reset unconditionally so the
next scroll attempt retries from the same cursor position.
Fixes: https://todo.sr.ht/~ccleberg/hutch/61
Diffstat (limited to 'Hutch/Views/SystemStatus/SystemStatusView.swift')
0 files changed, 0 insertions, 0 deletions
