Update of mhonarc/MHonArc/lib
Modified Files:
mhopt.pl mhrcfile.pl
Log Message:
Added 'warn' operator in places where it was unintentionally left out.
Fixes problem where no warning was generated for a non-existent
resource file and if LANG setting could not be set. Surprised someone
did not notice this problem sooner.
======================================================================
FILE: mhonarc/MHonArc/lib/mhopt.pl
<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/*checkout*/mhonarc/MHonArc/lib/mhopt.pl?rev=2.60>
<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/mhonarc/MHonArc/lib/mhopt.pl.diff?r1=2.59&r2=2.60&diff_format=h>
--- mhopt.pl 2 Jun 2005 05:50:27 -0000 2.59
+++ mhopt.pl 6 Jun 2005 15:47:00 -0000 2.60
@@ -454,5 +454,6 @@
};
if ($@ && $Lang) {
- qq/Warning: Setting locale appears to be not supported:\n$(_at_)\n/;
+ warn qq/Warning: Setting locale appears to not be supported: /,
+ qq/Check POSIX module installation.\n/;
}
======================================================================
FILE: mhonarc/MHonArc/lib/mhrcfile.pl
<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/*checkout*/mhonarc/MHonArc/lib/mhrcfile.pl?rev=2.45>
<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/mhonarc/MHonArc/lib/mhrcfile.pl.diff?r1=2.44&r2=2.45&diff_format=h>
--- mhrcfile.pl 2 Jun 2005 05:50:27 -0000 2.44
+++ mhrcfile.pl 6 Jun 2005 15:47:00 -0000 2.45
@@ -44,9 +44,9 @@
++$found;
} elsif (-e _) {
- qq/Warning: "$file" is not readable\n/;
+ warn qq/Warning: "$file" is not readable\n/;
}
}
if (!$found && !$nowarn) {
- qq/Warning: Unable to read resource file "$filename"\n/;
+ warn qq/Warning: Unable to read resource file "$filename"\n/;
}
$found;
---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-COMMITS