Skip to content

Commit

Permalink
0.9: Improve error message for failed publish of presence events
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheworiordan committed Jan 15, 2017
1 parent dfa3edd commit 4008873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ably/realtime/presence.rb
Expand Up @@ -365,7 +365,7 @@ def create_presence_message(action, client_id, data)

def ensure_presence_publishable_on_connection_deferrable
if !connection.can_publish_messages?
error = Ably::Exceptions::MessageQueueingDisabled.new("Message cannot be published. Client is configured to disallow queueing of messages and connection is currently #{connection.state}")
error = Ably::Exceptions::MessageQueueingDisabled.new("Presence event cannot be published as they cannot be queued when the connection is #{connection.state}")
Ably::Util::SafeDeferrable.new_and_fail_immediately(logger, error)
end
end
Expand Down

0 comments on commit 4008873

Please sign in to comment.