From 94e01672d71deb4ac0f7aaa99610b9fc6fde720b Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 14 Apr 2017 14:58:32 +0200 Subject: [PATCH] update error propagation --- transport/internet/kcp/dialer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/transport/internet/kcp/dialer.go b/transport/internet/kcp/dialer.go index f3187b07..a52d45f2 100644 --- a/transport/internet/kcp/dialer.go +++ b/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,