Browse Source

include detailed error

Darien Raymond 8 năm trước cách đây
mục cha
commit
b862365832
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      transport/internet/websocket/dialer.go

+ 1 - 1
transport/internet/websocket/dialer.go

@@ -17,7 +17,7 @@ func Dial(ctx context.Context, dest net.Destination) (internet.Connection, error
 
 	conn, err := dialWebsocket(ctx, dest)
 	if err != nil {
-		return nil, newError("failed to dial WebSocket")
+		return nil, newError("failed to dial WebSocket").Base(err)
 	}
 	return internet.Connection(conn), nil
 }