Procházet zdrojové kódy

优化域名解析错误异常信息

drake před 3 roky
rodič
revize
38ef6553cf

+ 1 - 1
net/src/main/java/com/drake/net/request/BaseRequest.kt

@@ -103,7 +103,7 @@ abstract class BaseRequest {
             try {
                 httpUrl = (NetConfig.host + path).toHttpUrl().newBuilder()
             } catch (e: Throwable) {
-                throw URLParseException(NetConfig.host.ifEmpty { "NetConfig.host is empty" }, e)
+                throw URLParseException(NetConfig.host + path, e)
             }
         } else {
             this.httpUrl = url.newBuilder()