Quellcode durchsuchen

Change status code.

pull/14/head
Mushegh Sahakyan vor 4 Jahren
Ursprung
Commit
261a4a86fc
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      ui/src/main/java/com/wireguard/android/repository/DataRepository.java

+ 1
- 1
ui/src/main/java/com/wireguard/android/repository/DataRepository.java Datei anzeigen

@@ -475,7 +475,7 @@ public class DataRepository {
liveData.postMutableLiveData(StatusResource.error(NO_INTERNET_CONNECTION));
}
if(throwable instanceof HttpException){
if(((HttpException) throwable).code() == 404){
if(((HttpException) throwable).code() == 500){
final String requestURL = ((HttpException) throwable).response().raw().request().url().toString();
final String requestMethod = ((HttpException) throwable).response().raw().request().method();
final String requestBody = bodyToString(((HttpException) throwable).response().raw().request());


Laden…
Abbrechen
Speichern