bluesmoon/node-geoip — pull request #9 by orktes (2012-05-21 11:35:12+00:00)
Title: Fallback should also match bad file descriptor errors

Would be great if bad file descriptor errors were also checked.

> try {fs.readFileSync("./geoip-lite/data/geoip-city-names.dat")} catch(e) { console.log(e.code)}
EBADF