From 1e8ee3b81313ab4a6c53effa6736e22dc16d4032 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Mon, 27 Oct 2025 14:22:04 +0100 Subject: [PATCH] cmount: windows: improve error message on missing winfsp --- cmd/cmount/mount.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/cmount/mount.go b/cmd/cmount/mount.go index a2ccd4b85..9bb1ab490 100644 --- a/cmd/cmount/mount.go +++ b/cmd/cmount/mount.go @@ -8,6 +8,7 @@ package cmount import ( "errors" "fmt" + "strings" "os" "runtime" "time" @@ -149,7 +150,11 @@ func mount(VFS *vfs.VFS, mountPath string, opt *mountlib.Options) (<-chan error, go func() { defer func() { if r := recover(); r != nil { - errChan <- fmt.Errorf("mount failed: %v", r) + err := fmt.Errorf("mount failed: %v", r) + if strings.Contains(strings.ToLower(err.Error()), "cannot find winfsp") { + err = fmt.Errorf("%w\nHint: Install WinFsp from https://winfsp.dev/rel/", err) + } + errChan <- err } }() var err error