lostisland/faraday — pull request #255 by alebsack (2013-04-11 20:01:03+00:00)
Title: em_synchrony adapter does not properly report EventMachine::HttpClient errors

This fix raises an exception when EventMachine::HttpClient assigns an error (such as Errno::ECONNREFUSED). This fixes the problem that the response status is merely set to 0 on connection errors. The adapter should now be compatible with the others, which raise Faraday::Error::ConnectionFailed.