Commit 76768d8e authored by Xavier Guimard's avatar Xavier Guimard

Fix error introduced in 248b81ad

parent 62d5c783
......@@ -8,12 +8,11 @@ sub new {
die 'Custom register module not defined';
}
eval $self->{p}->loadModule( $self->{conf}->{customRegister} );
($@)
? return $self->{p}->loadModule(
$self->{conf}->{ customRegister )
: die 'Unable to load register module '
. $self->{conf}->{customRegister};
my $res = $self->{p}->loadModule( $self->{conf}->{customRegister} );
unless($res) {
die 'Unable to load register module ' . $self->{conf}->{customRegister};
}
return $res;
}
1;
1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment