Raise an error when a malformed package.json file is found.
authorBen Leslie <benno@benno.id.au>
Fri, 23 Sep 2011 13:25:20 +0000 (09:25 -0400)
committerisaacs <i@izs.me>
Fri, 23 Sep 2011 19:00:26 +0000 (12:00 -0700)
commita4e10cdb0729335a8e15f15387ecb94203723aa2
tree456c009a717ca19d267795c0759f61335d4b0f2b
parent94bedc60f4ea429c9051422916014835374c51d5
Raise an error when a malformed package.json file is found.

The current behaviour will silently ignore any parsing errors
that may occur when loading a package.json file. This makes
debugging errors in the package.json file very difficult.

This changes the behaviour that that errors opening and reading
the file package.json file continue to be ignored, but errors
in parsing will throw an exception.
lib/module.js