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