Skip to content

Commit 5a81f0a

Browse files
committed
Rephrased configuration error message
1 parent 7eee088 commit 5a81f0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/logstash/outputs/elasticsearch.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -543,12 +543,12 @@ def check_action_validity
543543

544544
def check_dlq_custom_codes
545545
intersection = dlq_custom_codes & DOC_DLQ_CODES
546-
raise LogStash::ConfigurationError, "dlq_custom_codes contains error codes already used: #{intersection}" unless intersection.empty?
546+
raise LogStash::ConfigurationError, "#{intersection} are already defined as standard DLQ error codes" unless intersection.empty?
547547

548548
intersection = dlq_custom_codes & DOC_SUCCESS_CODES
549-
raise LogStash::ConfigurationError, "dlq_custom_codes contains error codes already defined as success: #{intersection}" unless intersection.empty?
549+
raise LogStash::ConfigurationError, "#{intersection} are success codes which cannot be redefined in dlq_custom_codes" unless intersection.empty?
550550

551551
intersection = dlq_custom_codes & [DOC_CONFLICT_CODE]
552-
raise LogStash::ConfigurationError, "dlq_custom_codes contains error codes already defined as conflict: #{intersection}" unless intersection.empty?
552+
raise LogStash::ConfigurationError, "#{intersection} are error codes already defined as conflict which cannot be redefined in dlq_custom_codes" unless intersection.empty?
553553
end
554554
end

0 commit comments

Comments
 (0)