Adapt error name to a less generic error name, but still more generic than explicitly telling the server is down (this commit message is longer than the actual changes in the files)
This commit is contained in:
parent
1aa9f7bca2
commit
09f272eb3c
@ -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.unknown_error,
|
||||
R.string.unknown_error_in_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="unknown_error">Unknown error, check if server is down: %1$s</string>
|
||||
<string name="unknown_error_in_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