Closed caseywebdev closed 11 years ago
Yeah very good point, I was running into this same thing a week or so ago when my kernel started throwing unnecessary EMFILE
s - I'll add the thing to throw the error and also investigate intelligently working around it if that can be done without bloating the code too much.
Ran into this error message today
After a little digging it seems that the error being thrown in
fs.readdir
is ignored, andlist
is leftundefined
. I added aconsole.error(err)
and turns out I was running into theEMFILE
error because myulimit
was too low (the default for OS X is only 256, yikes). I bumped it up and everything is working. I've run into this before with other Node.js programs and I've found a few reasonable solutions:Anyway, love the tool, great work!