Skip to content

Commit 63f5930

Browse files
authored
Merge pull request #5784 from thaJeztah/docs_gen_no_pkg_errors
docs/generate: remove uses of pkg/errors
2 parents 0f75059 + 2f79598 commit 63f5930

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/generate/generate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
package main
66

77
import (
8+
"errors"
89
"log"
910
"os"
1011

1112
clidocstool "github.com/docker/cli-docs-tool"
1213
"github.com/docker/cli/cli"
1314
"github.com/docker/cli/cli/command"
1415
"github.com/docker/cli/cli/command/commands"
15-
"github.com/pkg/errors"
1616
"github.com/spf13/cobra"
1717
"github.com/spf13/pflag"
1818
)
@@ -64,7 +64,7 @@ func gen(opts *options) error {
6464
return err
6565
}
6666
default:
67-
return errors.Errorf("unknown format %q", format)
67+
return errors.New("unknown format: " + format)
6868
}
6969
}
7070

0 commit comments

Comments
 (0)