Browse code

Merge pull request #18622 from runcom/return-err

layer: layer_store.go: return on error

Vincent Demeester authored on 2015/12/17 17:10:09
Showing 1 changed files
... ...
@@ -423,7 +423,7 @@ func (ls *layerStore) initMount(graphID, parent, mountLabel string, initFunc Mou
423 423
 	initID := fmt.Sprintf("%s-init", graphID)
424 424
 
425 425
 	if err := ls.driver.Create(initID, parent, mountLabel); err != nil {
426
-
426
+		return "", err
427 427
 	}
428 428
 	p, err := ls.driver.Get(initID, "")
429 429
 	if err != nil {