refactor:修改http错误日志打印

This commit is contained in:
fanxb 2021-10-19 14:57:26 +08:00
parent e735411bc3
commit 7c59a50ec4

View File

@ -203,7 +203,7 @@ public class HttpUtil {
try (Response res = (proxy ? PROXY_CLIENT : CLIENT).newCall(request).execute()) {
return parseResponse(res, typeClass);
} catch (Exception e) {
throw new CustomException(request.url() + e.getLocalizedMessage(), e);
throw new RuntimeException(request.url() + e.getLocalizedMessage(), e);
}
}