Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 9497a1a7d0256bb5b8d475795accc89edd6271a5 1 parent 8ae4e3a
@orktes orktes authored committed
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 ========================");
Please sign in to comment.
Something went wrong with that request. Please try again.