[interchange-cvs] interchange - racke modified lib/Vend/Scan.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Fri Jun 23 08:41:50 EDT 2006
User: racke
Date: 2006-06-23 12:41:50 GMT
Modified: lib/Vend Scan.pm
Log:
log errors for custom search module initialization errors,
standard message for users
Revision Changes Path
2.32 +7 -4 interchange/lib/Vend/Scan.pm
rev 2.32, prev_rev 2.31
Index: Scan.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Scan.pm,v
retrieving revision 2.31
retrieving revision 2.32
diff -u -r2.31 -r2.32
--- Scan.pm 8 Nov 2005 18:14:45 -0000 2.31
+++ Scan.pm 23 Jun 2006 12:41:50 -0000 2.32
@@ -1,8 +1,8 @@
# Vend::Scan - Prepare searches for Interchange
#
-# $Id: Scan.pm,v 2.31 2005/11/08 18:14:45 jon Exp $
+# $Id: Scan.pm,v 2.32 2006/06/23 12:41:50 racke Exp $
#
-# Copyright (C) 2002-2005 Interchange Development Group
+# Copyright (C) 2002-2006 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
@@ -30,7 +30,7 @@
perform_search
);
-$VERSION = substr(q$Revision: 2.31 $, 10);
+$VERSION = substr(q$Revision: 2.32 $, 10);
use strict;
no warnings qw(uninitialized numeric);
@@ -540,9 +540,12 @@
$q = "$Global::Variable->{$options{mv_searchtype}}"->new(%options);
};
if ($@) {
+ ::logError("Search initialization for search type %s failed: %s",
+ $options{mv_searchtype}, $@);
+
::display_special_page(
find_special_page('badsearch'),
- errmsg("Bad search type %s: %s", $options{mv_searchtype}, $@ ),
+ errmsg('Search initialization failed')
);
return 0;
}
More information about the interchange-cvs
mailing list