lib/adhearsion/call_controller.rb in adhearsion-2.0.0.rc1 vs lib/adhearsion/call_controller.rb in adhearsion-2.0.0.rc2
- old
+ new
@@ -111,10 +111,10 @@
write_and_await_response component
yield component if block_given?
complete_event = component.complete_event
- raise StandardError, [complete_event.reason.details, component.inspect].join(": ") if complete_event.reason.is_a? Punchblock::Event::Complete::Error
+ raise Adhearsion::Error, [complete_event.reason.details, component.inspect].join(": ") if complete_event.reason.is_a? Punchblock::Event::Complete::Error
component
end
def answer(*args)
block_until_resumed