mirror of
https://github.com/docker/cli.git
synced 2026-10-05 21:47:15 -04:00
Merge pull request #30187 from thaJeztah/show-error-on-unsupported-flags
print error if unsupported flags are used
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user