lib/ably/modules/safe_deferrable.rb in ably-0.8.7 vs lib/ably/modules/safe_deferrable.rb in ably-0.8.8
- 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