mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 15:28:35 +00:00
drop/omit
This commit is contained in:
@@ -49,9 +49,8 @@ func LoadImage(root string) (*Image, error) {
|
||||
if stat, err := os.Stat(layerPath(root)); err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return nil, fmt.Errorf("Couldn't load image %s: no filesystem layer", img.Id)
|
||||
} else {
|
||||
return nil, err
|
||||
}
|
||||
return nil, err
|
||||
} else if !stat.IsDir() {
|
||||
return nil, fmt.Errorf("Couldn't load image %s: %s is not a directory", img.Id, layerPath(root))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user