From ee886ef098ea38fba9f35fae27983cd098f56d8a Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 11 Dec 2012 11:02:11 +0000 Subject: Updated to be more explicit in the error field. --- lib/custodian/protocoltest/dns.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/custodian/protocoltest') diff --git a/lib/custodian/protocoltest/dns.rb b/lib/custodian/protocoltest/dns.rb index d5cac93..4053747 100644 --- a/lib/custodian/protocoltest/dns.rb +++ b/lib/custodian/protocoltest/dns.rb @@ -105,7 +105,7 @@ module Custodian # expected = 0 if ( results != @resolve_expected ) - @error = "The expected result '#{@resolve_expected}' didn't match the returned results '#{results}'" + @error = "When resolving the name #{@resolve_name} [#{resolve_type}-record lookup] against DNS-server #{@host} we received an error. The expected result '#{@resolve_expected}' didn't match the returned results '#{results}'" return false end @@ -150,7 +150,7 @@ module Custodian end end rescue Timeout::Error => e - @error = "Timed-out connecting #{e}" + @error = "Timed-out performing DNS lookups #{e}" return nil end -- cgit v1.2.1