lib/submodules/ably-ruby/lib/ably/realtime/auth.rb in ably-rest-1.0.6 vs lib/submodules/ably-ruby/lib/ably/realtime/auth.rb in ably-rest-1.1.0
- old
+ new
@@ -237,10 +237,10 @@
logger.error { "Failed to authenticate: #{error}" }
if error.kind_of?(Ably::Exceptions::BaseAblyException)
# Use base exception if it exists carrying forward the status codes
deferrable.fail Ably::Exceptions::AuthenticationFailed.new(error.message, nil, nil, error)
else
- deferrable.fail Ably::Exceptions::AuthenticationFailed.new(error.message, 500, 80019)
+ deferrable.fail Ably::Exceptions::AuthenticationFailed.new(error.message, 500, Ably::Exceptions::Codes::CLIENT_CONFIGURED_AUTHENTICATION_PROVIDER_REQUEST_FAILED)
end
end
async_wrap(success_callback, fail_callback) do
auth_params_sync
end