Attempted fix for problems with module error reporting.
This commit is contained in:
parent
a2f4cf00a9
commit
d0ed6e4ac1
@ -57,6 +57,7 @@ package Modules;
|
||||
|
||||
use DBI;
|
||||
use Module::Load;
|
||||
use SystemModule;
|
||||
use strict;
|
||||
|
||||
our $errstr;
|
||||
@ -314,7 +315,7 @@ sub load_module {
|
||||
|
||||
# Render unto us a new instance of thyself!
|
||||
my $modobj = $name -> new(%args)
|
||||
or $self -> self_error("Unable to load module: ".$Block::errstr);
|
||||
or $self -> self_error("Unable to load module: ".$SystemModule::errstr);
|
||||
use strict;
|
||||
|
||||
return $modobj;
|
||||
|
Loading…
x
Reference in New Issue
Block a user