[LON-CAPA-cvs] cvs: loncom /configuration Configuration.pm

harris41 lon-capa-cvs@mail.lon-capa.org
Sat, 04 May 2002 00:03:29 -0000


harris41		Fri May  3 20:03:29 2002 EDT

  Modified files:              
    /loncom/configuration	Configuration.pm 
  Log:
  refining the error message with the specific filename
  being processed
  
  
Index: loncom/configuration/Configuration.pm
diff -u loncom/configuration/Configuration.pm:1.1 loncom/configuration/Configuration.pm:1.2
--- loncom/configuration/Configuration.pm:1.1	Fri May  3 19:57:19 2002
+++ loncom/configuration/Configuration.pm	Fri May  3 20:03:29 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Configuration file reader
 #
-# $Id: Configuration.pm,v 1.1 2002/05/03 23:57:19 harris41 Exp $
+# $Id: Configuration.pm,v 1.2 2002/05/04 00:03:29 harris41 Exp $
 #
 #
 # Copyright Michigan State University Board of Trustees
@@ -33,7 +33,7 @@
 
 package LONCAPA::Configuration;
 
-$VERSION = sprintf("%d.%02d", q$Revision: 1.1 $ =~ /(\d+)\.(\d+)/);
+$VERSION = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/);
 
 use strict;
 
@@ -44,7 +44,7 @@
     my (@conf_files)=@_;
     my %perlvar;
     foreach my $filename (@conf_files) {
-	open(CONFIG,'<'.$confdir.$filename) or die("Can't read access.conf");
+	open(CONFIG,'<'.$confdir.$filename) or die("Can't read $filename");
 	while (my $configline=<CONFIG>) {
 	    if ($configline =~ /^[^\#]*PerlSetVar/) {
 		my ($unused,$varname,$varvalue)=split(/\s+/,$configline);