From 44d0f941f287d5dcf6212216b7c0b72b085bdb1a Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Tue, 10 Sep 2013 17:16:59 +0000 Subject: [PATCH] fix wrong return error --- container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container.go b/container.go index 5ddb07562c..bca6b52c61 100644 --- a/container.go +++ b/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 {