From db56e8bf3ba8f562219f9f87d300153e848ed8b2 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Thu, 15 Oct 2015 12:42:55 -0500 Subject: Fix the variable name in error message to make sure it does not raise an exception --- lib/action_cable/connection/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/action_cable') diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb index 2443b03018..0c2e07489e 100644 --- a/lib/action_cable/connection/base.rb +++ b/lib/action_cable/connection/base.rb @@ -87,7 +87,7 @@ module ActionCable if websocket.alive? subscriptions.execute_command ActiveSupport::JSON.decode(data_in_json) else - logger.error "Received data without a live websocket (#{data.inspect})" + logger.error "Received data without a live websocket (#{data_in_json.inspect})" end end -- cgit v1.2.3