From 1d861920d244ce18c63ef7223dec564dea93ce11 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Wed, 25 Oct 2023 09:39:42 -0700 Subject: [PATCH] fix dropped snapshotter.Mounts() error Signed-off-by: Lars Lehtonen --- fuseoverlayfs.go | 3 +++ 1 file changed, 3 insertions(+) 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 {