lib/mock/twilio/webhooks/call_status_updates.rb in mock-twilio-0.7.2 vs lib/mock/twilio/webhooks/call_status_updates.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_status_updates_data(sid, conference_uuid)
{