Parcourir la source

update error propagation

Darien Raymond il y a 8 ans
Parent
commit
94e01672d7
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      transport/internet/kcp/dialer.go

+ 1 - 2
transport/internet/kcp/dialer.go

@@ -108,8 +108,7 @@ func DialKCP(ctx context.Context, dest v2net.Destination) (internet.Connection,
 	src := internet.DialerSourceFromContext(ctx)
 	rawConn, err := internet.DialSystem(ctx, src, dest)
 	if err != nil {
-		log.Trace(newError("failed to dial to dest: ", err).AtError())
-		return nil, err
+		return nil, newError("failed to dial to dest: ", err).AtWarning().Base(err)
 	}
 	conn := &ClientConnection{
 		Conn: rawConn,