felixge/node-couchdb — pull request #46 by privman (2012-09-20 19:17:51+00:00)
Title: Improve output when receiving non-JSON from server

I'm getting exceptions, apparently caused by the server returning non-JSON responses. In order to figure the root cause I need to see what the server's response is (I imagine it's a human-readable string describing the auth/connectivity/whatever issue).
This fix adds the raw response to the error output so that it's available post-mortem.