lib/mock/twilio/webhooks/calls.rb in mock-twilio-0.7.2 vs lib/mock/twilio/webhooks/calls.rb in mock-twilio-0.8.0
- old
+ new
@@ -27,10 +27,10 @@
nil)
case response.status
when 200..204
response
when 400..600
- raise Webhooks::RestError, response.body
+ raise Webhooks::RestError, Mock::Twilio::ErrorHandler.new(response).raise
end
end
def self.call_data(sid)
{