remove "starting with /"

Signed-off-by: Muayyad Alsadi <alsadi@gmail.com>
This commit is contained in:
Muayyad Alsadi 2016-11-14 16:51:29 +02:00 committed by Victor Vieux
parent d3ae1d7bd6
commit 02c7b6ffad

View file

@ -269,7 +269,7 @@ func (r *Root) validateName(name string) error {
return validationError{fmt.Errorf("volume name is too short, names should be at least two alphanumeric characters")}
}
if !volumeNameRegex.MatchString(name) {
return validationError{fmt.Errorf("%q includes invalid characters for a local volume name, only %q are allowed. If you intented to pass host directory use absolute path starting with /", name, utils.RestrictedNameChars)}
return validationError{fmt.Errorf("%q includes invalid characters for a local volume name, only %q are allowed. If you intented to pass a host directory, use absolute path.", name, utils.RestrictedNameChars)}
}
return nil
}