lib/theatre/invocation.rb in adhearsion-1.1.1 vs lib/theatre/invocation.rb in adhearsion-1.2.0
- old
+ new
@@ -60,9 +60,12 @@
@callback.call
else
@callback.call @payload
end
with_state_lock { @current_state = :success }
+ rescue => e
+ @error = e
+ with_state_lock { @current_state = :error }
ensure
@finished_time = Time.now.freeze
end
end