From 2b4925f81aba8881a6e3b9cce7e47b86110ad487 Mon Sep 17 00:00:00 2001 From: Dominic Della Valle Date: Mon, 19 Dec 2022 20:18:36 -0500 Subject: [PATCH] cgofuse: actually join errors on close --- internal/filesystem/cgofuse/fuse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/filesystem/cgofuse/fuse.go b/internal/filesystem/cgofuse/fuse.go index d0673b84..6f361d0e 100644 --- a/internal/filesystem/cgofuse/fuse.go +++ b/internal/filesystem/cgofuse/fuse.go @@ -163,7 +163,7 @@ func (fh *Fuse) Close() (err error) { defer fh.mountsMu.Unlock() mounts := fh.getMountsLocked() for mountpoint := range mounts { - err = fserrors.Join(unmountLocked(mounts, mountpoint)) + err = fserrors.Join(err, unmountLocked(mounts, mountpoint)) } return err }