From e5498d2e589bb020deb9078c3e1cc65ee07ad882 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=20Upstream-commit:=20e7fdcc15c5eb3812c71dd6?= =?UTF-8?q?1f22a8d77d3ae72e36=20Component:=20engine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/engine/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/container.go b/components/engine/container.go index 419ba84d29..f9247eccc8 100644 --- a/components/engine/container.go +++ b/components/engine/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