1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #25168 from miaoyq/optimize-a-print

optimize a print in `volume/volume.go`
This commit is contained in:
Brian Goff 2016-07-28 09:16:17 -04:00 committed by GitHub
commit b09f280161

View file

@ -154,7 +154,7 @@ func (m *MountPoint) Type() string {
// ParseVolumesFrom ensures that the supplied volumes-from is valid.
func ParseVolumesFrom(spec string) (string, string, error) {
if len(spec) == 0 {
return "", "", fmt.Errorf("malformed volumes-from specification: %s", spec)
return "", "", fmt.Errorf("volumes-from specification cannot be an empty string")
}
specParts := strings.SplitN(spec, ":", 2)