Issue #4038 <https://github.com/joyent/node/issues/4038> made me think that
perhaps others might find my little *errno* <http://npm.im/errno> package
useful. It exposes more details on error codes that come from libuv.
Particularly useful if your errors need to bubble up to real people that
may not understand what the likes of EBADF and friends might mean
(EWHATTHE?). See http://npm.im/errno or https://github.com/rvagg/node-errnofor
details.
require('errno').errno[3] // → { "errno": 3, "code": "EACCES",
"description": "permission denied" }
require('errno').code.ENOTEMPTY // → { "errno": 53, "code": "ENOTEMPTY",
"description": "directory not empty" }
-- Rod
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en