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

Add error msg

parent c9f257ac
...@@ -7,7 +7,11 @@ sub new { ...@@ -7,7 +7,11 @@ sub new {
unless ( $self->{conf}->{customRegister} ) { unless ( $self->{conf}->{customRegister} ) {
die 'Custom register module not defined'; 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; 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