Warn about unknown error instead of server error

This commit is contained in:
fgerber 2023-01-07 11:11:14 +01:00 committed by Matthieu
parent 3c40978d50
commit 1aa9f7bca2
2 changed files with 2 additions and 2 deletions

View File

@ -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()
)
}

View File

@ -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>