nathan-lafreniere/node-simpleriak — pull request #6 by wraithgar (2012-11-16 05:33:01+00:00)
Title: Don't crash when server is down

in simpleriak.get(), on the final else clause (no index, no search) res.statusCode is evaluated, without checking if res exists. res will be undefined if the riak server is down which would crash whatever app was using simpleriak (it crashed connect-simpleriak).

This commit fixes that.