Commit ec7ef175 authored by Nick Cooper's avatar Nick Cooper Committed by Han-Wen Nienhuys

example/hello: use Fatalf to display error message.

parent 6551eff7
......@@ -55,7 +55,7 @@ func main() {
nfs := pathfs.NewPathNodeFs(&HelloFs{FileSystem: pathfs.NewDefaultFileSystem()}, nil)
server, _, err := nodefs.MountRoot(flag.Arg(0), nfs.Root(), nil)
if err != nil {
log.Fatal("Mount fail: %v\n", err)
log.Fatalf("Mount fail: %v\n", err)
}
server.Serve()
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment