Extra error checking on module load success.

This commit is contained in:
Chris 2011-09-30 15:34:55 +01:00
parent 9d12e085c3
commit 4bbf3ea4eb

View File

@ -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"},