On Mon, Mar 13, 2006 at 12:09:19PM -0700, J Medrick Stevenson wrote:
> Thanks for the help Bill! With your advice, I've figured out how to
> solve my second and third questions but I'm not sure what to do with the
> first one that you answered below. I can find the section of code you
> suggest in my swish.cgi file but I'm not sure what to do with it.
> Should I comment out the section? Add something? Any further
> clarification would be most helpful!
If this is indeed the code:
> > if ( $swish->Error ) {
> > $self->errstr( join ': ', $swish->ErrorString,
> > $swish->LastErrorMsg );
> > delete $cached_handles{$indexes} if $swish->CriticalError;
> > return;
> > }
Then I might try something like:
if ( $swish->Error ) {
my $err = $swish->ErrorString;
$err = "Sorry, our staff is at lunch"
if $err =~ /no results/;
$self->errstr( join ': ', $err, $swish->LastErrorMsg );
Or some such thing.
--
Bill Moseley
moseley@hank.org
Unsubscribe from or help with the swish-e list:
http://swish-e.org/Discussion/
Help with Swish-e:
http://swish-e.org/current/docs
swish-e@sunsite.berkeley.edu
Received on Mon Mar 13 11:18:48 2006