From: Mike Taylor Date: Wed, 9 May 2007 12:05:04 +0000 (+0000) Subject: Use connection-level diagnostic if there is no record. X-Git-Tag: CPAN-v1.02~54^2~364 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=328a5472d06b3a2b573d236b402c868866ce51a8;p=irspy-moved-to-github.git Use connection-level diagnostic if there is no record. --- diff --git a/lib/ZOOM/IRSpy/Test/Record/Fetch.pm b/lib/ZOOM/IRSpy/Test/Record/Fetch.pm index 0569245..86ae65a 100644 --- a/lib/ZOOM/IRSpy/Test/Record/Fetch.pm +++ b/lib/ZOOM/IRSpy/Test/Record/Fetch.pm @@ -1,4 +1,4 @@ -# $Id: Fetch.pm,v 1.28 2007-05-01 16:31:08 mike Exp $ +# $Id: Fetch.pm,v 1.29 2007-05-09 12:05:04 mike Exp $ # See the "Main" test package for documentation @@ -101,7 +101,8 @@ sub record { my $ok = 0; if (!$record || $record->error()) { $conn->log("irspy_test", "retrieval of $syn record failed: ", - defined $record ? $record->exception() : "???"); + defined $record ? $record->exception() : + $conn->exception()); } else { $ok = 1; my $text = $record->render();