mirror of https://github.com/docker/cli.git
Merge pull request #30187 from thaJeztah/show-error-on-unsupported-flags
print error if unsupported flags are used
This commit is contained in:
commit
bc452bbf95
|
@ -229,7 +229,7 @@ func IsErrPluginPermissionDenied(err error) bool {
|
||||||
// if less than the current supported version
|
// if less than the current supported version
|
||||||
func (cli *Client) NewVersionError(APIrequired, feature string) error {
|
func (cli *Client) NewVersionError(APIrequired, feature string) error {
|
||||||
if versions.LessThan(cli.version, APIrequired) {
|
if versions.LessThan(cli.version, APIrequired) {
|
||||||
return fmt.Errorf("%q requires API version %s, but the Docker server is version %s", feature, APIrequired, cli.version)
|
return fmt.Errorf("%q requires API version %s, but the Docker daemon API version is %s", feature, APIrequired, cli.version)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue