Explorar o código

Return “err” instead of “nil” when MkdirAll() fails when binding a volume

Michael Stapelberg %!s(int64=11) %!d(string=hai) anos
pai
achega
e7fdcc15c5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      container.go

+ 1 - 1
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