Browse code

optimize a print in

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>

update 'optimize-a-print'

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>

Yanqiang Miao authored on 2016/07/28 19:31:16
Showing 1 changed files
... ...
@@ -154,7 +154,7 @@ func (m *MountPoint) Type() string {
154 154
 // ParseVolumesFrom ensures that the supplied volumes-from is valid.
155 155
 func ParseVolumesFrom(spec string) (string, string, error) {
156 156
 	if len(spec) == 0 {
157
-		return "", "", fmt.Errorf("malformed volumes-from specification: %s", spec)
157
+		return "", "", fmt.Errorf("volumes-from specification cannot be an empty string")
158 158
 	}
159 159
 
160 160
 	specParts := strings.SplitN(spec, ":", 2)