Browse Source

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

drake 3 years ago
parent
commit
38ef6553cf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/src/main/java/com/drake/net/request/BaseRequest.kt

+ 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()