Skip to content

Commit

Permalink
fix: rm extra 'bad path' check from Mount()
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Aug 10, 2024
1 parent ef43217 commit 8b55aae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/utils/macos.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 8b55aae

Please sign in to comment.