Skip to content

Commit

Permalink
Include backtrace error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Mar 15, 2024
1 parent eb0c812 commit ee4f565
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mastodon/cli/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,13 @@ def deploy
progress.finish

say("Indexed #{added} records, de-indexed #{removed}", :green, true)
rescue Elasticsearch::Transport::Transport::ServerError
rescue Elasticsearch::Transport::Transport::ServerError => e
fail_with_message <<~ERROR
There was an issue connecting to the search server. Make sure the
server is configured and running correctly, and that the environment
variable settings match what the server is expecting.
#{e.message}
ERROR
end

Expand Down

0 comments on commit ee4f565

Please sign in to comment.