Parcourir la source

Make clear error codes are from HTTP

len il y a 8 ans
Parent
commit
dc882b4dce

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/data/network/OkHttpExtensions.kt

@@ -50,7 +50,7 @@ fun Call.asObservableSuccess(): Observable<Response> {
     return asObservable().doOnNext { response ->
         if (!response.isSuccessful) {
             response.close()
-            throw Exception("Unsuccessful code ${response.code()}")
+            throw Exception("HTTP error ${response.code()}")
         }
     }
 }