fix format %w

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2023-01-11 19:43:22 +03:00 committed by abereziny
parent ce4595fca1
commit b24baf06ca

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