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

This commit is contained in:
Solomon Hykes 2013-03-13 21:50:15 -07:00
parent a1712ea6d3
commit a444327ab6
1 changed files with 1 additions and 1 deletions

View File

@ -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) {