This commit is contained in:
Thomas 2020-12-24 11:42:06 +01:00
parent 74e45b1820
commit ccb6e184cc
2 changed files with 4 additions and 0 deletions

View File

@ -1619,6 +1619,9 @@ public class RetrofitPeertubeAPI {
error.setStatusCode(responseCode); error.setStatusCode(responseCode);
error.setError(_context.getString(R.string.toast_error)); error.setError(_context.getString(R.string.toast_error));
} }
if (responseCode == 404 || responseCode == 502) {
error.setError(_context.getString(R.string.instance_not_availabe));
}
apiResponse.setError(error); apiResponse.setError(error);
} }

View File

@ -446,4 +446,5 @@
<string name="live">Live</string> <string name="live">Live</string>
<string name="live_not_started">This live has not started!</string> <string name="live_not_started">This live has not started!</string>
<string name="remote_account">Account from another network!</string> <string name="remote_account">Account from another network!</string>
<string name="instance_not_availabe">Instance is not available!</string>
</resources> </resources>