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

Fix error introduced in 248b81ad

parent 62d5c783
...@@ -8,12 +8,11 @@ sub new { ...@@ -8,12 +8,11 @@ sub new {
die 'Custom register module not defined'; die 'Custom register module not defined';
} }
eval $self->{p}->loadModule( $self->{conf}->{customRegister} ); my $res = $self->{p}->loadModule( $self->{conf}->{customRegister} );
($@) unless($res) {
? return $self->{p}->loadModule( die 'Unable to load register module ' . $self->{conf}->{customRegister};
$self->{conf}->{ customRegister ) }
: die 'Unable to load register module ' return $res;
. $self->{conf}->{customRegister}; }
}
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