Skip to content

fix: Improve display of error causes on timelines#1924

Merged
nikclayton merged 1 commit intopachli:mainfrom
nikclayton:show-source-and-mediator-errors
Nov 15, 2025
Merged

fix: Improve display of error causes on timelines#1924
nikclayton merged 1 commit intopachli:mainfrom
nikclayton:show-source-and-mediator-errors

Conversation

@nikclayton
Copy link
Copy Markdown
Contributor

Previous code had a number of issues:

  1. JSON decoding errors processing pages in *RemoteMediator created empty pages instead of reporting the error up the stack.

  2. JSON decoding errors from Room converters didn't include enough information to determine the source of the problem.

  3. Processing CombinedLoadStates could miss error states in source.refresh because of how CombinedLoadStates merges the states.

Fix all of these.

Previous code had a number of issues:

1. JSON decoding errors processing pages in *RemoteMediator created
empty pages instead of reporting the error up the stack.

2. JSON decoding errors from Room converters didn't include enough
information to determine the source of the problem.

3. Processing `CombinedLoadStates` could miss error states in
`source.refresh` because of how `CombinedLoadStates` merges the states.

Fix all of these.
@nikclayton nikclayton merged commit cc33532 into pachli:main Nov 15, 2025
27 checks passed
@nikclayton nikclayton deleted the show-source-and-mediator-errors branch November 30, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant