Display more user-friendly error messages

Instead of displaying the Java
exception, this change displays a more user-friendly message for some
common network-related issues.
Fixes mastodon/mastodon-android#667
This commit is contained in:
NorbiPeti
2024-05-01 23:14:08 +02:00
parent 0e868f0be0
commit c7b8cc72fc
2 changed files with 26 additions and 2 deletions

View File

@@ -755,4 +755,9 @@
<string name="view_favorites">View favorites</string>
<string name="undo_reblog">Undo boost</string>
<string name="undo_favorite">Undo favorite</string>
<string name="could_not_reach_server">Could not reach the server. Make sure you\'re connected to the internet and try again.</string>
<string name="connection_timed_out">Connection timed out. Make sure you\'re connected to the internet and try again.</string>
<string name="server_error">There may be a problem with your instance or your internet. Make sure you have access to the internet and try again.</string>
<string name="not_found">Not found. It probably doesn\'t exist anymore.</string>
<string name="unknown_error">Unknown error: %s</string>
</resources>