Debug/log errors in modules on loading.

This commit is contained in:
Elijah Perrault committed 2011-02-11 15:31:13 -07:00
1 parent b5f2c46619
commit 8dbc524b09
1 file changed
+8
+8
View File
@@ -452,6 +452,14 @@ sub mod_load {
}
}
my $errs = $EVAL_ERROR;
while ($errs =~ s/(.*\n)//) {
my $line = $1;
$line =~ s/(\r|\n)//g;
alog 'Error in '.$module.': '.$line;
dbug 'Error in '.$module.': '.$line;
}
return;
}