CODEBASE-320: Currently, if Blacklight is unable to connect to Solr, the Errno::ECONNREFUSED exception is raised (if you are lucky -- if something actually /is/ listening on the port, it could be more cryptic.), with this stacktrace:
It might be nice to try to rescue these and throw a Blacklight-level Solr exception instead that could provide friendlier information to new implementors (especially in the development environment).
CODEBASE-320: Currently, if Blacklight is unable to connect to Solr, the Errno::ECONNREFUSED exception is raised (if you are lucky -- if something actually /is/ listening on the port, it could be more cryptic.), with this stacktrace:
/Users/chris_beer/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:560:in
initialize' /Users/chris_beer/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:560:in
open' /Users/chris_beer/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:560:inconnect' /Users/chris_beer/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/timeout.rb:53:in
timeout' /Users/chris_beer/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/timeout.rb:101:intimeout' /Users/chris_beer/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:560:in
connect' /Users/chris_beer/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:553:indo_start' /Users/chris_beer/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:542:in
start' /Users/chris_beer/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:1035:inrequest' rsolr (1.0.0) lib/rsolr/connection.rb:15:in
execute' rsolr (1.0.0) lib/rsolr/client.rb:151:inexecute' rsolr (1.0.0) lib/rsolr/client.rb:146:in
send_and_receive'It might be nice to try to rescue these and throw a Blacklight-level Solr exception instead that could provide friendlier information to new implementors (especially in the development environment).