浏览代码

layer: layer_store.go: return on error

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Antonio Murdaca 9 年之前
父节点
当前提交
f7ed97a630
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 {