浏览代码

Fixed a bug which causes 'docker import' to fail silently when bsdtar is not installed

Solomon Hykes 12 年之前
父节点
当前提交
a444327ab6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/layers.go

+ 1 - 1
fs/layers.go

@@ -93,7 +93,7 @@ func (store *LayerStore) AddLayer(id string, archive Archive) (string, error) {
 		return "", fmt.Errorf("Mktemp failed: %s", err)
 	}
 	if err := Untar(archive, tmp); err != nil {
-		return "", nil
+		return "", err
 	}
 	layer := store.layerPath(id)
 	if !store.Exists(id) {