Commit 46a417fb authored by Xavier Guimard's avatar Xavier Guimard

More debug (#1333)

parent 7423217c
......@@ -90,7 +90,10 @@ sub translate {
my $json = $self->conf->{templateDir} . "/common/mail/$lang.json";
$json = $self->conf->{templateDir} . '/common/mail/en.json'
unless ( -f $json );
open F, $json or die $!;
open F, $json
or die 'Installation error: '
. $!
. " ($self->{conf}->{templateDir}/$lang.json or $self->{conf}->{templateDir}/common/mail/en.json)";
$json = join '', <F>;
close F;
$lang = from_json( $json, { allow_nonref => 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