report module loading errors to apache log during preload
This commit is contained in:
parent
0dd8cf75e2
commit
a94c7b1a4b
2 changed files with 5 additions and 2 deletions
|
|
@ -68,8 +68,10 @@ foreach my $lib (@{$customLibs}) {
|
|||
File::Find::find(\&getWebGUIModules, @folders);
|
||||
foreach my $package (@modules) {
|
||||
next if (WebGUI::Utility::isIn($package,@excludes));
|
||||
my $use = "use ".$package." ()";
|
||||
eval($use);
|
||||
(my $file = "$package.pm") =~ s{::|'}{/}g;
|
||||
if (!eval { require $file; 1 }) {
|
||||
warn "Error loading $package! - $@";
|
||||
}
|
||||
}
|
||||
|
||||
use Apache2::ServerUtil ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue