Attempted fix for problems with module error reporting.

This commit is contained in:
Chris 2012-05-23 12:03:17 +01:00
parent a2f4cf00a9
commit d0ed6e4ac1

View File

@ -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;