lib/submodules/ably-ruby/lib/ably/modules/safe_deferrable.rb in ably-rest-0.8.6 vs lib/submodules/ably-ruby/lib/ably/modules/safe_deferrable.rb in ably-rest-0.8.9
- old
+ new
@@ -57,10 +57,10 @@
super(*args)
end
private
def safe_deferrable_block(*args)
- yield *args
+ yield(*args)
rescue StandardError => e
message = "An exception in a Deferrable callback was caught. #{e.class}: #{e.message}\n#{e.backtrace.join("\n")}"
if defined?(:logger) && logger.respond_to?(:error)
logger.error message
else