chore: Add TODO for more specific error message in the future (#528)

This commit is contained in:
Nik Clayton 2024-03-14 12:32:23 +01:00 committed by GitHub
parent faee20dee4
commit 6f8a3f20a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -422,6 +422,10 @@ class TimelineFragment :
?: (loadState.source.refresh as? LoadState.Error)?.error
?: IllegalStateException("unknown error")
// TODO: This error message should be specific about the operation
// At the moment it's just e.g., "An error occurred: HTTP 503"
// and a "Retry" button, so the user has no idea what's going
// to be retried.
val message = error.getErrorString(requireContext())
// Show errors as a snackbar if there is existing content to show