From 57c5690493da3d9a6a996310a94bf4eda976220f Mon Sep 17 00:00:00 2001 From: Yanqiang Miao Date: Thu, 28 Jul 2016 18:31:16 +0800 Subject: [PATCH] optimize a print in Signed-off-by: Yanqiang Miao update 'optimize-a-print' Signed-off-by: Yanqiang Miao Upstream-commit: a503f3ac2fdb5f24b7ca982fc6447423095f229e Component: engine --- components/engine/volume/volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/volume/volume.go b/components/engine/volume/volume.go index 988cc14256..bd58af94f2 100644 --- a/components/engine/volume/volume.go +++ b/components/engine/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)