Skip to content

Commit

Permalink
wrap error while compat with 1.19 -_-
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwample committed Nov 13, 2023
1 parent ae4cff5 commit 4fbcb9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/transports/connecting/dtls/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ func (t *ClientTransport) WrapDial(dialer dialFunc) (dialFunc, error) {
return second.conn, nil
}

return nil, fmt.Errorf("%w; %w", first.err, second.err)
// TODO: once our minimum golang version is >= 1.20 change this to "%w; %w"
return nil, fmt.Errorf("%w; %s", first.err, second.err)
}

return dtlsDialer, nil
Expand Down

0 comments on commit 4fbcb9b

Please sign in to comment.