Skip to content
This repository was archived by the owner on Oct 23, 2018. It is now read-only.

Commit

Permalink
Rescue websolr http errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdmac committed Jan 31, 2012
1 parent 8f5574d commit ad7d6ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/sunspot/mongoid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def _remove_index
end
def _update_index
Sunspot.index! self
rescue RSolr::Error::Http => e
puts " Error updating Sunspot index: #{e}"
end
end

Expand Down

0 comments on commit ad7d6ee

Please sign in to comment.