diff --git a/app/src/main/java/com/hippo/ehviewer/client/EhEngine.kt b/app/src/main/java/com/hippo/ehviewer/client/EhEngine.kt index ef6b41df2..5acfbb08a 100644 --- a/app/src/main/java/com/hippo/ehviewer/client/EhEngine.kt +++ b/app/src/main/java/com/hippo/ehviewer/client/EhEngine.kt @@ -103,10 +103,10 @@ object EhEngine { throw StatusCodeException(code) } if (e is ParseException) { - if (body != null && !body.contains("<")) { - throw EhException(body) - } else if (TextUtils.isEmpty(body)) { + if (TextUtils.isEmpty(body)) { throw EhException(GetText.getString(R.string.error_empty_html)) + } else if (body != null && !body.contains("<")) { + throw EhException(body) } else { if (Settings.getSaveParseErrorBody()) { AppConfig.saveParseErrorBody(e as ParseException?)