As we see at the list, sometimes users have a problem to start the server
in the 'make test' stage and when they see:

  server failed to start! (please examine t/logs/error_log)

many times this log file doesn't exist. So let's check whether the file
exists before we suggest to look at this file. In case it doesn't exist we
should point to the debug resource. Since currently we don't have any
final SUPPORT doc, I wrote some blurb. later on we can replace with a
pointer to a doc that explains what to do.

Index: Apache-Test/lib/Apache/TestServer.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/Apache-Test/lib/Apache/TestServer.pm,v
retrieving revision 1.10
diff -b -u -r1.10 TestServer.pm
--- Apache-Test/lib/Apache/TestServer.pm        2001/06/24 14:47:44
1.10
+++ Apache-Test/lib/Apache/TestServer.pm        2001/06/30 13:09:58
@@ -228,7 +228,13 @@
 sub failed_msg {
     my $self = shift;
     my $log = $self->{config}->error_log(1);
-    error "@_ (please examine $log)";
+    my $log_file_info;
+    if (-e $log) {
+        $log_file_info = "please examine $log";
+    } else {
+        $log_file_info = "$log wasn't created, start the server in debug mode";
+    }
+    error "@_ ($log_file_info)";
 }

 sub start {




_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Reply via email to