From d5caca91e213b8c82c126ce702dca46ae1fa11ba Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 18 Jun 2015 18:51:06 +0200 Subject: Fix that log_exception only takes an exception, not a string --- lib/action_cable/connection/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb index e3d2f42e65..06e1eb2e04 100644 --- a/lib/action_cable/connection/base.rb +++ b/lib/action_cable/connection/base.rb @@ -152,7 +152,7 @@ module ActionCable if @subscriptions[message['identifier']] @subscriptions[message['identifier']].receive_data(ActiveSupport::JSON.decode message['data']) else - log_exception "Unable to process message because no subscription was found (#{message.inspect})" + raise "Unable to process message because no subscription was found (#{message.inspect})" end rescue Exception => e logger.error "Could not process message (#{message.inspect})" -- cgit v1.2.3