Extra error checking on module load success.
This commit is contained in:
parent
9d12e085c3
commit
4bbf3ea4eb
@ -185,6 +185,7 @@ sub _new_module_internal {
|
||||
my $name = $modrow -> {"perl_module"};
|
||||
no strict "refs"; # must disable strict references to allow named module loading.
|
||||
eval "require $name";
|
||||
die "Unable to load module $name: $@" if($@);
|
||||
|
||||
# Set up the module argument hash...
|
||||
my %args = ( "modid" => $modrow -> {"id"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user