diff --git a/content/local/store.go b/content/local/store.go index 170a84f98..fb9293034 100644 --- a/content/local/store.go +++ b/content/local/store.go @@ -206,11 +206,17 @@ func (s *store) status(ingestPath string) (content.Status, error) { dp := filepath.Join(ingestPath, "data") fi, err := os.Stat(dp) if err != nil { + if os.IsNotExist(err) { + err = errors.Wrap(errdefs.ErrNotFound, err.Error()) + } return content.Status{}, err } ref, err := readFileString(filepath.Join(ingestPath, "ref")) if err != nil { + if os.IsNotExist(err) { + err = errors.Wrap(errdefs.ErrNotFound, err.Error()) + } return content.Status{}, err }