mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Use %w, not %v, in fmt.Errorf, so errors can be unwrapped.
https://go.dev/blog/go1.13-errors#wrapping-errors-with-w
This commit is contained in:
parent
062411143c
commit
bb2126b7c6
2 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ func newBrokerChannelFromConfig(config ClientConfig) (*BrokerChannel, error) {
|
|||
if config.UTLSClientID != "" {
|
||||
utlsClientHelloID, err := utlsutil.NameToUTLSID(config.UTLSClientID)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to create broker channel: %v", err)
|
||||
return nil, fmt.Errorf("unable to create broker channel: %w", err)
|
||||
}
|
||||
utlsConfig := &utls.Config{
|
||||
RootCAs: certs.GetRootCAs(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue