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:
@@ -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>
|
||||
Reference in New Issue
Block a user