only show connection string on NoServersAvailable

This commit is contained in:
Jeff Smick 2013-04-11 08:58:45 -07:00
parent a7eeb15a58
commit d8ad5961ab
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,5 @@
v0.9.2 simply show the connection string on NoServersAvailable
v0.9.1 fix infinite connection retry
v0.9.0 upgrade to thrift 0.9.0

View File

@ -216,6 +216,7 @@ class AbstractThriftClient
end
def no_servers_available!
raise ThriftClient::NoServersAvailable, "No live servers in #{@server_list.inspect}."
servers = @server_list.map { |s| s.to_s }.join(',')
raise ThriftClient::NoServersAvailable, "No live servers in [#{servers}]."
end
end