Merge pull request #5784 from thaJeztah/docs_gen_no_pkg_errors

docs/generate: remove uses of pkg/errors
This commit is contained in:
Sebastiaan van Stijn 2025-03-19 13:09:16 +01:00 committed by GitHub
commit 63f5930c17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,7 @@
package main
import (
"errors"
"log"
"os"
@ -12,7 +13,6 @@ import (
"github.com/docker/cli/cli"
"github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/commands"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
@ -64,7 +64,7 @@ func gen(opts *options) error {
return err
}
default:
return errors.Errorf("unknown format %q", format)
return errors.New("unknown format: " + format)
}
}