Skip to content
Browse files

Gracefully handle EBADF

We receive an EBADF if the path to our data file points to a network
mounted file system, but the file doesn't exist.  This case should be
handled the same as ENOENT.
  • Loading branch information...
1 parent 8ae4e3a commit 9497a1a7d0256bb5b8d475795accc89edd6271a5 @orktes orktes committed with May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/geoip.js
View
2 lib/geoip.js
@@ -24,7 +24,7 @@ try {
recsz = 12;
}
catch(err) {
- if(err.code != 'ENOENT') {
+ if(err.code != 'ENOENT' && err.code != 'EBADF') {
throw err;
}
console.warn("\n======================== Warning ========================");

0 comments on commit 9497a1a

Please sign in to comment.
Something went wrong with that request. Please try again.