diff options
author | Jakob Unterwurzacher | 2018-06-26 20:48:28 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-07-01 20:56:22 +0200 |
commit | 52c9ff1ded6860771b31278444d5e09d17bbf522 (patch) | |
tree | e64524a84ac85a989c4e0ebd3fdb94de1cc26d41 | |
parent | 6d64dfe8f7acd8e9ca4a659d26318e442c2db85a (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
-rw-r--r-- | mount.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") } |