From dc882b4dcebbd037dfc6ec5415bccda955d85775 Mon Sep 17 00:00:00 2001 From: len Date: Mon, 26 Dec 2016 18:12:15 +0100 Subject: [PATCH] Make clear error codes are from HTTP --- .../java/eu/kanade/tachiyomi/data/network/OkHttpExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/network/OkHttpExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/data/network/OkHttpExtensions.kt index 8850c362d7..7b75bdd0b7 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/network/OkHttpExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/network/OkHttpExtensions.kt @@ -50,7 +50,7 @@ fun Call.asObservableSuccess(): Observable { return asObservable().doOnNext { response -> if (!response.isSuccessful) { response.close() - throw Exception("Unsuccessful code ${response.code()}") + throw Exception("HTTP error ${response.code()}") } } }