Skip to content

Commit 2c24fb2

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

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cli/connhelper/commandconn/commandconn.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828
"syscall"
2929
"time"
3030

31-
"github.com/pkg/errors"
3231
"github.com/sirupsen/logrus"
3332
)
3433

@@ -149,7 +148,7 @@ func (c *commandConn) handleEOF(err error) error {
149148
c.stderrMu.Lock()
150149
stderr := c.stderr.String()
151150
c.stderrMu.Unlock()
152-
return errors.Errorf("command %v did not exit after %v: stderr=%q", c.cmd.Args, err, stderr)
151+
return fmt.Errorf("command %v did not exit after %v: stderr=%q", c.cmd.Args, err, stderr)
153152
}
154153
}
155154

@@ -159,7 +158,7 @@ func (c *commandConn) handleEOF(err error) error {
159158
c.stderrMu.Lock()
160159
stderr := c.stderr.String()
161160
c.stderrMu.Unlock()
162-
return errors.Errorf("command %v has exited with %v, make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=%s", c.cmd.Args, werr, stderr)
161+
return fmt.Errorf("command %v has exited with %v, make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=%s", c.cmd.Args, werr, stderr)
163162
}
164163

165164
func ignorableCloseError(err error) bool {

0 commit comments

Comments
 (0)