danwrong/restler — pull request #120 by bolasblack (2013-06-07 02:43:53+00:00)
Title: fix data parse error

example:

rest.get(url).on('complete', function(data, res) {
data.forEach(function(partData) {
throw new Error("some error")
})
});

Throw error:

TypeError: Object Error: Failed to parse JSON body: some error has no method 'forEach'