From b24baf06ca951f0bbd1fbd10b4162d785caf2682 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Wed, 11 Jan 2023 19:43:22 +0300 Subject: [PATCH] fix format %w Signed-off-by: Andrey Berezin --- internal/native/native.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/native/native.go b/internal/native/native.go index 9f0ce17..3e974c7 100644 --- a/internal/native/native.go +++ b/internal/native/native.go @@ -79,7 +79,7 @@ func (n *Native) Connect(endpoint, hexPrivateKey string, dialTimeout, streamTime err = cli.Dial(prmDial) if err != nil { - return nil, fmt.Errorf("dial endpoint: %w %w", endpoint, err) + return nil, fmt.Errorf("dial endpoint: %s %w", endpoint, err) } // generate session token @@ -88,7 +88,7 @@ func (n *Native) Connect(endpoint, hexPrivateKey string, dialTimeout, streamTime prmSessionCreate.SetExp(exp) sessionResp, err := cli.SessionCreate(n.vu.Context(), prmSessionCreate) if err != nil { - return nil, fmt.Errorf("dial endpoint: %w %w", endpoint, err) + return nil, fmt.Errorf("dial endpoint: %s %w", endpoint, err) } var id uuid.UUID