mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
show network instead of server error
This commit is contained in:
parent
8bc3c59686
commit
43efda9e5e
@ -101,7 +101,7 @@ class MainSettings : BasePreferenceFragment() {
|
|||||||
val updateInfo = try {
|
val updateInfo = try {
|
||||||
RetrofitInstance.externalApi.getUpdateInfo()
|
RetrofitInstance.externalApi.getUpdateInfo()
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
showSnackBar(R.string.server_error)
|
showSnackBar(R.string.unknown_error)
|
||||||
return@launch
|
return@launch
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user