die on unsupported format
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 17 Feb 2012 16:41:47 +0000 (17:41 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 17 Feb 2012 16:41:47 +0000 (17:41 +0100)
server.pl

index 693ce18..f1ea91b 100755 (executable)
--- a/server.pl
+++ b/server.pl
@@ -127,7 +127,7 @@ sub FetchHandle {
                $req_form eq Net::Z3950::OID::xml()     ? 'xml' :
                $req_form eq Net::Z3950::OID::unimarc() ? 'unimarc' :
                $req_form eq Net::Z3950::OID::usmarc()  ? 'marc' : # XXX usmarc -> marc
-               undef;
+               die "unknown format $req_form";
 
        if ( ! $format ) {
                warn "ERROR: $req_form format not supported";