summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-01-08 14:34:20 +0000
committerSteve Kemp <steve@steve.org.uk>2015-01-08 14:34:20 +0000
commitfd5ac2c771088e47ecf9d9828a089841c17f0b7b (patch)
tree7207ce9cbb1df571696b2ed2c2ae1fb145fae2fd
parent1bc56205506acc6ca488e19dd40ef6e2c0be4ec8 (diff)
Simplified error messages for DNS failures.
We show the result we expected and what we received, but we do so with quoted strings. So rather than: * one * two we show "one,two". This closes #8538.
-rw-r--r--lib/custodian/protocoltest/dns.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/dns.rb b/lib/custodian/protocoltest/dns.rb
index b4506e0..7187a75 100644
--- a/lib/custodian/protocoltest/dns.rb
+++ b/lib/custodian/protocoltest/dns.rb
@@ -115,7 +115,7 @@ module Custodian
#
if ( !(results - @resolve_expected).empty? or !(@resolve_expected - results).empty? )
- @error = "DNS server *#{@host}* (#{@server_ip}) returned the wrong records for @#{resolve_name} IN #{resolve_type}@.\n\nWe expected:\n * #{resolve_expected.join("\n * ")}\n\nWe got:\n * #{results.join("\n * ")}\n"
+ @error = "DNS server *#{@host}* (#{@server_ip}) returned the wrong records for @#{resolve_name} IN #{resolve_type}@.\n\nWe expected '#{resolve_expected.join(",")}', but we received '#{results.join(",")}'\n"
end
return @error.nil?