Fix issue #151
This commit is contained in:
parent
74e45b1820
commit
ccb6e184cc
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue