mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
193b036159
commit
a503f3ac2f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue