fix format %w

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
pull/8/head
Andrey Berezin 2023-01-11 19:43:22 +03:00 committed by abereziny
parent ce4595fca1
commit b24baf06ca
1 changed files with 2 additions and 2 deletions

View File

@ -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