From fd5ac2c771088e47ecf9d9828a089841c17f0b7b Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 8 Jan 2015 14:34:20 +0000 Subject: 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. --- lib/custodian/protocoltest/dns.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- cgit v1.2.1