Commit 248b81ad authored by Christophe Maudoux's avatar Christophe Maudoux

Add error msg

parent c9f257ac
Pipeline #2700 passed with stages
in 5 minutes and 38 seconds
......@@ -7,7 +7,11 @@ sub new {
unless ( $self->{conf}->{customRegister} ) {
die 'Custom register module not defined';
}
return $self->{p}->loadModule( $self->{conf}->{customRegister} );
eval $self->{p}->loadModule( $self->{conf}->{customRegister} );
($@)
? return $self->{p}->loadModule( $self->{conf}->{customRegister )
: die 'Unable to load register module ' . $self->{conf}->{customRegister};
}
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