main: improve fuse.NewServer error message

Before: fuse.NewServer failed: "fusermount exited with code 256\n"
After:  fuse.NewServer failed: fusermount exited with code 256
This commit is contained in:
Jakob Unterwurzacher 2018-06-26 20:48:28 +02:00
parent 6d64dfe8f7
commit 52c9ff1ded

View File

@ -351,7 +351,7 @@ func initGoFuse(fs pathfs.FileSystem, args *argContainer) *fuse.Server {
}
srv, err := fuse.NewServer(conn.RawFS(), args.mountpoint, &mOpts)
if err != nil {
tlog.Fatal.Printf("fuse.NewServer failed: %q", err)
tlog.Fatal.Printf("fuse.NewServer failed: %s", strings.TrimSpace(err.Error()))
if runtime.GOOS == "darwin" {
tlog.Info.Printf("Maybe you should run: /Library/Filesystems/osxfuse.fs/Contents/Resources/load_osxfuse")
}