From bbd710eb2c0c5512c79297172383eb77a3bd1ecc Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Tue, 7 Nov 2017 16:26:45 +0100 Subject: [PATCH] get actual error from TT2 object --- lib/IdPAccountManager/WebRequest.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IdPAccountManager/WebRequest.pm b/lib/IdPAccountManager/WebRequest.pm index 697131d..4062b86 100755 --- a/lib/IdPAccountManager/WebRequest.pm +++ b/lib/IdPAccountManager/WebRequest.pm @@ -393,7 +393,7 @@ sub req_generate_token { unless ($tt2->process($template, $data, $handle)) { push @{ $self->{out}->{errors} }, "mail_notification_error"; - $self->{logger}->errorf("Mail notification error: %s", $EVAL_ERROR); + $self->{logger}->errorf("Mail notification error: %s", $tt2->error()); return undef; } -- GitLab