summaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-06-26 20:48:28 +0200
committerJakob Unterwurzacher2018-07-01 20:56:22 +0200
commit52c9ff1ded6860771b31278444d5e09d17bbf522 (patch)
treee64524a84ac85a989c4e0ebd3fdb94de1cc26d41 /mount.go
parent6d64dfe8f7acd8e9ca4a659d26318e442c2db85a (diff)
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
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount.go b/mount.go
index cbe77b4..a673848 100644
--- a/mount.go
+++ b/mount.go
@@ -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")
}