X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=lib%2FZOOM.pm;h=cc0cf8e03e0db3f6c306384e647a15988e40fe25;hb=0be02044c8dfc4bd43979670589144712aeee30e;hp=a88be643ba026044927c98987ac6f7821d560a9a;hpb=00c00e99543145f444acb9802dc92802e355c78b;p=ZOOM-Perl-moved-to-github.git diff --git a/lib/ZOOM.pm b/lib/ZOOM.pm index a88be64..cc0cf8e 100644 --- a/lib/ZOOM.pm +++ b/lib/ZOOM.pm @@ -1,4 +1,4 @@ -# $Id: ZOOM.pm,v 1.42 2006-11-28 16:47:19 mike Exp $ +# $Id: ZOOM.pm,v 1.43 2006-12-01 14:13:41 mike Exp $ use strict; use warnings; @@ -34,7 +34,7 @@ sub MEMORY { Net::Z3950::ZOOM::ERROR_MEMORY } sub ENCODE { Net::Z3950::ZOOM::ERROR_ENCODE } sub DECODE { Net::Z3950::ZOOM::ERROR_DECODE } sub CONNECTION_LOST { Net::Z3950::ZOOM::ERROR_CONNECTION_LOST } -sub INIT { Net::Z3950::ZOOM::ERROR_INIT } +sub ZINIT { Net::Z3950::ZOOM::ERROR_INIT } sub INTERNAL { Net::Z3950::ZOOM::ERROR_INTERNAL } sub TIMEOUT { Net::Z3950::ZOOM::ERROR_TIMEOUT } sub UNSUPPORTED_PROTOCOL { Net::Z3950::ZOOM::ERROR_UNSUPPORTED_PROTOCOL } @@ -831,6 +831,7 @@ sub exception { my $this = shift(); my($errcode, $errmsg, $addinfo, $diagset) = $this->error(); + return undef if $errcode == 0; return new ZOOM::Exception($errcode, $errmsg, $addinfo, $diagset); }