소스 검색

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

drake 3 년 전
부모
커밋
38ef6553cf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()