Merge pull request #30187 from thaJeztah/show-error-on-unsupported-flags

print error if unsupported flags are used
This commit is contained in:
Vincent Demeester 2017-02-04 22:43:51 +01:00 committed by GitHub
commit bc452bbf95
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ func IsErrPluginPermissionDenied(err error) bool {
// if less than the current supported version
func (cli *Client) NewVersionError(APIrequired, feature string) error {
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
}