1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2024-10-27 18:34:01 +00:00

code can be undefined

This commit is contained in:
Mathias Buus 2015-05-19 20:24:47 +02:00
parent 81a428267f
commit 50e0c4f4d0

View File

@ -96,7 +96,7 @@ exports.unmount = function (mnt, cb) {
}
exports.errno = function (code) {
return exports[code.toUpperCase()] || -1
return (code && exports[code.toUpperCase()]) || -1
}
exports.EPERM = -1