From 8b55aaedb07ae398f5ee906868017617f28267bc Mon Sep 17 00:00:00 2001 From: blacktop Date: Sat, 10 Aug 2024 17:17:26 -0600 Subject: [PATCH] fix: rm extra 'bad path' check from Mount() --- internal/utils/macos.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/utils/macos.go b/internal/utils/macos.go index 9b3b5925b..b844c84af 100644 --- a/internal/utils/macos.go +++ b/internal/utils/macos.go @@ -438,10 +438,7 @@ func Mount(image, mountPoint string) error { } else { out, err := exec.Command("apfs-fuse", image, mountPoint).CombinedOutput() if err != nil { - if _, perr := exec.LookPath("apfs-fuse"); perr != nil { - return fmt.Errorf("utils.Mount: 'apfs-fuse' not found (required on non-darwin systems): %v: %v: %s", perr, err, out) - } - return fmt.Errorf("%v: %s", err, out) + return fmt.Errorf("failed to mount '%s' via apfs-fuse: %v: cmd output - '%s'", image, err, out) } }