Skip to content

fix: Generate useful error messages for all errors - #719

Merged
nikclayton merged 2 commits into
mainfrom
704-better-error-strings
May 30, 2024
Merged

nikclayton merged 2 commits into
mainfrom
704-better-error-strings

Conversation

@nikclayton

@nikclayton nikclayton commented May 30, 2024 •

Copy link
Copy Markdown
Contributor

Previous code was inconsistent about using getServerErrorMessage() and whether or not the case where getServerErrorMessage() returns null was handled.

Switch to using getErrorString() which does handle the null case and always returns a usable string.

Some string resources are rendered temporarily unused by this change. They will be used again soon, so configure lint to ignore them at the moment.

Previous code was inconsistent about using getServerErrorMessage() and
whether or not the case where getServerErrorMessage() returns null was
handled.

Switch to using getErrorString() which does handle the null case and
always returns a usable string.
@nikclayton
nikclayton merged commit 4520a29 into main May 30, 2024
@nikclayton
nikclayton deleted the 704-better-error-strings branch May 30, 2024 17:14
nikclayton added a commit to nikclayton/pachli-android that referenced this pull request Jun 10, 2024
Previous code was inconsistent about using getServerErrorMessage() and
whether or not the case where getServerErrorMessage() returns null was
handled.

Switch to using getErrorString() which does handle the null case and
always returns a usable string.

Some string resources are rendered temporarily unused by this change.
They will be used again soon, so configure lint to ignore them at the
moment.
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