[LON-CAPA-cvs] cvs: loncom /interface lonsearchcat.pm

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 19 Apr 2004 17:44:47 -0000


matthew		Mon Apr 19 13:44:47 2004 EDT

  Modified files:              
    /loncom/interface	lonsearchcat.pm 
  Log:
  Log MySQL table creation error instead of abusing the user with them.
  
  
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.210 loncom/interface/lonsearchcat.pm:1.211
--- loncom/interface/lonsearchcat.pm:1.210	Mon Apr 19 13:40:00 2004
+++ loncom/interface/lonsearchcat.pm	Mon Apr 19 13:44:47 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Search Catalog
 #
-# $Id: lonsearchcat.pm,v 1.210 2004/04/19 17:40:00 matthew Exp $
+# $Id: lonsearchcat.pm,v 1.211 2004/04/19 17:44:47 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -336,12 +336,14 @@
         # Set up table
         if (! defined(&create_results_table())) {
 	    my $errorstring=&Apache::lonmysql::get_error();
+            &Apache::lonnet::logthis('lonsearchcat.pm: Unable to create '.
+                                     'needed table.  lonmysql error:'.
+                                     $errorstring);
             $r->print(<<END);
 <html><head><title>Search Error</title></head>
 $bodytag
 Unable to create table in which to store search results.  
 The search has been aborted.
-<br />$errorstring
 </body>
 </html>
 END