1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

cmount: windows: improve error message on missing winfsp

This commit is contained in:
divinity76
2025-10-27 14:22:04 +01:00
committed by GitHub
parent eaab3f5271
commit 1e8ee3b813

View File

@@ -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