Commit 048c6333 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Dont crash on nonexistent mount points.

parent 7a5defac
......@@ -430,7 +430,11 @@ func (me *FileSystemConnector) Mount(mountPoint string, fs FileSystem, opts *Mou
} else {
node = me.rootNode
}
if node == nil {
log.Println("Could not find mountpoint?", mountpoint)
return ENOENT
}
if !node.IsDir() {
return EINVAL
}
......
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