From 67c8c3f967e6a7b51c34ed24b7665f738408e6e7 Mon Sep 17 00:00:00 2001 From: Ben McClelland Date: Mon, 3 Dec 2018 11:09:37 -0800 Subject: [PATCH] add missed error handling in inode to path example --- examples/ino2path/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/ino2path/main.go b/examples/ino2path/main.go index 71c42a8..2e43fcf 100644 --- a/examples/ino2path/main.go +++ b/examples/ino2path/main.go @@ -33,5 +33,9 @@ func main() { } s, err := scoutfs.InoToPath(f, u) + if err != nil { + log.Fatalln("error inode to path:", err) + } + fmt.Println(s) }