Skip to content

Commit bfb478e

Browse files
committed
cli/command/secret: use stdlib errors
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 35e052e commit bfb478e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/command/secret/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package secret
22

33
import (
44
"context"
5+
"errors"
56
"fmt"
67
"io"
78

@@ -10,7 +11,6 @@ import (
1011
"github.com/docker/cli/opts"
1112
"github.com/moby/moby/api/types/swarm"
1213
"github.com/moby/sys/sequential"
13-
"github.com/pkg/errors"
1414
"github.com/spf13/cobra"
1515
)
1616

@@ -56,7 +56,7 @@ func runSecretCreate(ctx context.Context, dockerCLI command.Cli, options createO
5656
var secretData []byte
5757
if options.driver != "" {
5858
if options.file != "" {
59-
return errors.Errorf("When using secret driver secret data must be empty")
59+
return errors.New("when using secret driver secret data must be empty")
6060
}
6161
} else {
6262
var err error

0 commit comments

Comments
 (0)