joyent/node — pull request #2358 by TooTallNate (2011-12-18 02:07:11+00:00)
Title: Set the 'errno' and 'code' of a module when not found.

I'm not sure if you guys will take this one, but basically I'm currently sniffing `"not find"` from the error object's `message`, which is rather hacky. So checking this property is a little cleaner approach.

Example of what I'm talking about:
https://github.com/TooTallNate/node-weak/blob/master/lib/bindings.js#L13