Browse Source

fix wrong return error

Victor Vieux 12 years ago
parent
commit
44d0f941f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      container.go

+ 1 - 1
container.go

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