Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/irspy
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Connection.pm
index 0d68df2..6664168 100644 (file)
@@ -1,4 +1,3 @@
-# $Id: Connection.pm,v 1.20 2007-12-20 12:31:09 mike Exp $
 
 package ZOOM::IRSpy::Connection;
 
@@ -54,7 +53,7 @@ sub create {
        # This should be a "can't happen", but junk entries such as
        #       //lucasportal.info/blogs/payday-usa">'</a>night:G<a href="http://lucasportal.info/blogs/payday-usa">'</a>night/Illepeliz
        # (yes, really) yield BIB-1 diagnostic 108 "Malformed query"
-       warn "registry search for record '$id' had error: '$@'";
+       warn "registry search for record '$id' had error: '$@' -- skipping";
        return undef;
     }
     my $n = $rs->size();
@@ -149,6 +148,7 @@ sub irspy_search {
     my $this = shift();
     my($qtype, $qstr, $udata, $options, %cb) = @_;
 
+    { use Carp; confess "Odd-sized hash!" if @_ % 2; }
     #warn "calling $this->irspy_search(", join(", ", @_), ")\n";
     $this->add_task(new ZOOM::IRSpy::Task::Search
                    ($qtype, $qstr, $this, $udata, $options, %cb));