substack/node-resolve — pull request #26 by AlexMost (2013-07-25 19:20:15+00:00)
Title: Passing error message when main file from package.json is not found

I've met the same problem as was described in this issue https://github.com/substack/node-resolve/issues/22. I investigated a little and found that this error occurs when, due to some reasons, package is missing the main file.(was not compiled properly after install or some raise conditions e.t.c.)

This fix returns appropriate error message that informs about that. I think this is more expected behaviour than just failure with no additional info.