Address PathNotFoundError in (*manifestStore).Exists

Exists was returning an error when encountering a PathNotFoundError when it
should just return false without an error.
pull/4/head
Stephen J Day 2014-12-05 14:34:54 -08:00
parent 2f78886aac
commit 1a75fccb43
1 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,12 @@ func (ms *manifestStore) Exists(name, tag string) (bool, error) {
fi, err := ms.driver.Stat(p)
if err != nil {
return false, err
switch err.(type) {
case storagedriver.PathNotFoundError:
return false, nil
default:
return false, err
}
}
if fi.IsDir() {