code can be undefined

Mathias Buus 9 years ago
parent 81a428267f
commit 50e0c4f4d0

@ -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

Loading…
Cancel
Save