Browse Source

layer: layer_store.go: return on error

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Antonio Murdaca 9 years ago
parent
commit
f7ed97a630
1 changed files with 1 additions and 1 deletions
  1. 1 1
      layer/layer_store.go

+ 1 - 1
layer/layer_store.go

@@ -423,7 +423,7 @@ func (ls *layerStore) initMount(graphID, parent, mountLabel string, initFunc Mou
 	initID := fmt.Sprintf("%s-init", graphID)
 
 	if err := ls.driver.Create(initID, parent, mountLabel); err != nil {
-
+		return "", err
 	}
 	p, err := ls.driver.Get(initID, "")
 	if err != nil {