Skip to content

Commit c771596

Browse files
committed
cli/connhelper: use stdlib errors
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 2c24fb2 commit c771596

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/connhelper/connhelper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ package connhelper
33

44
import (
55
"context"
6+
"fmt"
67
"net"
78
"net/url"
89
"strings"
910

1011
"github.com/docker/cli/cli/connhelper/commandconn"
1112
"github.com/docker/cli/cli/connhelper/ssh"
12-
"github.com/pkg/errors"
1313
)
1414

1515
// ConnectionHelper allows to connect to a remote host with custom stream provider binary.
@@ -43,7 +43,7 @@ func getConnectionHelper(daemonURL string, sshFlags []string) (*ConnectionHelper
4343
if u.Scheme == "ssh" {
4444
sp, err := ssh.ParseURL(daemonURL)
4545
if err != nil {
46-
return nil, errors.Wrap(err, "ssh host connection is not valid")
46+
return nil, fmt.Errorf("ssh host connection is not valid: %w", err)
4747
}
4848
sshFlags = addSSHTimeout(sshFlags)
4949
sshFlags = disablePseudoTerminalAllocation(sshFlags)

0 commit comments

Comments
 (0)