Warn about unknown error instead of server error
This commit is contained in:
parent
3c40978d50
commit
1aa9f7bca2
@ -86,7 +86,7 @@ internal fun <T: Any> initAdapter(
|
||||
Gson().fromJson(s, org.pixeldroid.app.utils.api.objects.Error::class.java)?.error?.ifBlank { null }
|
||||
} catch (exception: Exception) {
|
||||
errorLayout.root.context.getString(
|
||||
R.string.server_down_error,
|
||||
R.string.unknown_error,
|
||||
it.error.localizedMessage.orEmpty()
|
||||
)
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ For more info about Pixelfed, you can check here: https://pixelfed.org"</string>
|
||||
<!-- Loading error messages -->
|
||||
<string name="loading_toast">Something went wrong while loading</string>
|
||||
<string name="feed_failed">Could not get feed</string>
|
||||
<string name="server_down_error">The server appears to be temporarily down: %1$s</string>
|
||||
<string name="unknown_error">Unknown error, check if server is down: %1$s</string>
|
||||
<!-- Post pop-up options -->
|
||||
<string name="share_picture">Share picture…</string>
|
||||
<string name="save_to_gallery">Save to Gallery…</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user