瀏覽代碼

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

optimize a print in `volume/volume.go`
Brian Goff 9 年之前
父節點
當前提交
b09f280161
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      volume/volume.go

+ 1 - 1
volume/volume.go

@@ -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)