Browse Source

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

Solomon Hykes 12 years ago
parent
commit
a444327ab6
1 changed files with 1 additions and 1 deletions
  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) {