From: miker Date: Fri, 27 Jul 2007 15:32:36 +0000 (+0000) Subject: thinko in try/catch X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f87e18fc34c104bd392e309ca6cd0c57b1e056fd;p=Evergreen.git thinko in try/catch git-svn-id: svn://svn.open-ils.org/ILS/trunk@7585 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm index 05d4e1e280..dcb764c2e4 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm @@ -598,6 +598,7 @@ sub supercat { print "Location: $root/../../en-US/skin/default/xml/rdetail.xml?r=$id\n\n" if ($type eq 'record'); return 302; + } elsif ($base_format eq 'marc21') { my $ret = 200; @@ -619,17 +620,17 @@ sub supercat { print "Content-type: application/octet-stream\n\n"; print $r->as_usmarc; - } catch (Error) { + } otherwise { print "Content-type: text/html; charset=utf-8\n\n"; $apache->custom_response( 404, <<" HTML"); - $type $id not found! + ERROR
-
Sorry, we couldn't $command a $type with the id of $id in format $format.
+
Couldn't fetch $id as MARC21.
HTML