stas 2003/09/05 18:04:36
Modified: lib/Apache Build.pm
Log:
if MPM_NAME could be retrieved and MP_APXS wasn't passed, suggest to pass
it in the error message
Revision Changes Path
1.144 +7 -1 modperl-2.0/lib/Apache/Build.pm
Index: Build.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -u -r1.143 -r1.144
--- Build.pm 23 Aug 2003 00:12:17 -0000 1.143
+++ Build.pm 6 Sep 2003 01:04:36 -0000 1.144
@@ -182,7 +182,13 @@
}
}
- die "Failed to obtain the MPM name" unless $mpm_name;
+ unless ($mpm_name) {
+ my $msg = 'Failed to obtain the MPM name.';
+ $msg .= " Please specify MP_APXS=/full/path/to/apxs to solve " .
+ "this problem." unless exists $self->{MP_APXS};
+ die "$msg\n";
+ }
+
return $self->{mpm_name} = $mpm_name;
}