Skip to content

fix: show user-friendly message for network errors#446

Open
amaanq wants to merge 1 commit intoGrapheneOS:mainfrom
amaanq:fix
Open

fix: show user-friendly message for network errors#446
amaanq wants to merge 1 commit intoGrapheneOS:mainfrom
amaanq:fix

Conversation

@amaanq
Copy link

@amaanq amaanq commented Nov 26, 2025

Problem

Currently, network errors display raw Java exceptions to users (e.g., java.net.UnknownHostException: Unable to resolve host "apps.grapheneos.org": No address associated with hostname). This could be presented better to users.

Solution

If a given exception is a known network exception, we don't append the error details to the message.

I've tested this on a generic x86_64 emulator, now network errors look like this for me:

image image

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.

Raw UnknownHostException shown when updating apps while offline

1 participant