diff --git a/fuseoverlayfs.go b/fuseoverlayfs.go index cfcbe17..d5a1b96 100644 --- a/fuseoverlayfs.go +++ b/fuseoverlayfs.go @@ -183,6 +183,9 @@ func (o *snapshotter) Mounts(ctx context.Context, key string) ([]mount.Mount, er return nil, err } s, err := storage.GetSnapshot(ctx, key) + if err != nil { + return nil, err + } _, info, _, err := storage.GetInfo(ctx, key) t.Rollback() if err != nil {