Skip to content

Commit

Permalink
resque from SearchRequestFailed error while searching
Browse files Browse the repository at this point in the history
  • Loading branch information
nodecarter committed Jul 1, 2014
1 parent 1cc3835 commit 33bb140
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/redmine_elasticsearch/patches/search_controller_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def index_with_elasticsearch
rescue Errno::ECONNREFUSED => e
logger.error e
render_error :message => :search_connection_refused, :status => 503
rescue Tire::Search::SearchRequestFailed => e
logger.error e
render_error :message => :search_request_failed, :status => 503
end

private
Expand Down

0 comments on commit 33bb140

Please sign in to comment.