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

www www at source.lon-capa.org
Mon Oct 17 09:12:30 EDT 2011


www		Mon Oct 17 13:12:30 2011 EDT

  Modified files:              
    /loncom/interface	lonindexer.pm 
  Log:
  Not sure why we have both no_host and no_such_host, but we do
  
  
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.211 loncom/interface/lonindexer.pm:1.212
--- loncom/interface/lonindexer.pm:1.211	Mon Oct 17 12:41:30 2011
+++ loncom/interface/lonindexer.pm	Mon Oct 17 13:12:30 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.211 2011/10/17 12:41:30 raeburn Exp $
+# $Id: lonindexer.pm,v 1.212 2011/10/17 13:12:30 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -788,7 +788,7 @@
 	$hash{'dirlist_timestamp_files_'.$luri} = time;
     }
 #Checking for error messages associated with empty directories or inaccessible servers (See Bug 4984)
-    if (($listerror eq 'no_such_dir') || ($listerror eq 'no_such_host')) { 
+    if (($listerror eq 'no_such_dir') || ($listerror eq 'no_such_host') || ($listerror eq 'no_host')) { 
         $r->print("<p class='LC_info'>" . &mt("Directory does not exist."). "</p>");
     } elsif ($listerror eq 'con_lost') {
         $r->print("<p class='LC_info'>" . &mt("Directory temporarily not accessible."). "</p>");




More information about the LON-CAPA-cvs mailing list