From e7fdcc15c5eb3812c71dd61f22a8d77d3ae72e36 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 8 Nov 2013 22:52:10 +0100 Subject: [PATCH] =?UTF-8?q?Return=20=E2=80=9Cerr=E2=80=9D=20instead=20of?= =?UTF-8?q?=20=E2=80=9Cnil=E2=80=9D=20when=20MkdirAll()=20fails=20when=20b?= =?UTF-8?q?inding=20a=20volume?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container.go b/container.go index 419ba84d29..f9247eccc8 100644 --- a/container.go +++ b/container.go @@ -837,7 +837,7 @@ func (container *Container) Start() (err error) { // Create the mountpoint rootVolPath := path.Join(container.RootfsPath(), volPath) if err := os.MkdirAll(rootVolPath, 0755); err != nil { - return nil + return err } // Do not copy or change permissions if we are mounting from the host