rsms/node-fsdocs — pull request #2 by p (2012-12-17 09:25:09+00:00)
Title: Errno usage is wrong, replace it with textual error codes

On FreeBSD errno for EEXIST is returned as 47.

Fixes the other errno uses also, which changes behavior on affected platforms (when document does not exist, an exception would be thrown instead of null being returned).

See also: https://github.com/joyent/node/issues/2211

This is a more comprehensive edition of #1.