Merge pull request #1846 from dotcloud/fix_return_error

Fix wrong return error
Upstream-commit: b986fd00e074432c2f0d05655b4cf22c8d51b36f
Component: engine
This commit is contained in:
Michael Crosby
2013-09-13 09:44:38 -07:00
+1 -1
View File
@@ -648,7 +648,7 @@ func (container *Container) Start(hostConfig *HostConfig) error {
continue
}
if err := os.MkdirAll(path.Join(container.RootfsPath(), volPath), 0755); err != nil {
return nil
return err
}
container.Volumes[volPath] = id
if isRW, exists := c.VolumesRW[volPath]; exists {