From 9573abaf647fe600485c6df345834511b3017724 Mon Sep 17 00:00:00 2001 From: Nikita Kryuchkov Date: Wed, 19 Aug 2020 16:16:11 +0300 Subject: [PATCH] Fix bug with handshake error type --- pkg/snet/directtp/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/snet/directtp/client.go b/pkg/snet/directtp/client.go index fb49e40d7f..df84e67e49 100644 --- a/pkg/snet/directtp/client.go +++ b/pkg/snet/directtp/client.go @@ -220,11 +220,11 @@ func (c *client) acceptConn() error { wrappedConn, err := tpconn.NewConn(connConfig) if err != nil { - return fmt.Errorf("newConn: %w", err) + return err } if err := lis.Introduce(wrappedConn); err != nil { - return fmt.Errorf("introduce: %w", err) + return err } return nil