X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FRecord%2FFetch.pm;fp=lib%2FZOOM%2FIRSpy%2FTest%2FRecord%2FFetch.pm;h=320f9cae545c52f8a6dbc0525026518f868bdd8c;hb=7399b69130004c102cc45d7812d284c61083b613;hp=fb21d18ef814101105fd1ae263cc8ac327273431;hpb=0d8ded8974badb67f9ab67e2da2be46cee8edfcd;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy/Test/Record/Fetch.pm b/lib/ZOOM/IRSpy/Test/Record/Fetch.pm index fb21d18..320f9ca 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.25 2007-02-23 15:03:44 mike Exp $ +# $Id: Fetch.pm,v 1.26 2007-02-24 01:27:20 mike Exp $ # See the "Main" test package for documentation @@ -98,9 +98,9 @@ sub record { my $record = _fetch_record($rs, 0, $syn); my $ok = 0; - if ($record->error()) { + if (!$record || $record->error()) { $conn->log("irspy_test", "retrieval of $syn record failed: ", - $record->exception()); + defined $record ? $record->exception() : "???"); } else { $ok = 1; my $text = $record->render();