Commit d7a301a8 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Show a bit more detailed log failing to parse HTML message.

parent 091ebf5b
......@@ -583,6 +583,7 @@ Warning: this message may already have been sent by one of the list's editors.[%
[%~ ELSIF report_entry == 'unable_to_parse' ~%]
[%|loc()%]The page could not be parsed properly. Please check the content of web page or file you submitted.[%END%]
[% report_param.error %]
[%~ ELSIF report_entry == 'wrong_value' ~%]
[%|loc(report_param.argument)%]Wrong value for parameter %1[%END%]
......
......@@ -14747,13 +14747,16 @@ sub do_send_mail {
# parse return the MIME::Lite part to send
my $part = eval { $mail_html->parse($page_source) };
unless ($part) {
Sympa::Report::reject_report_web('user', 'unable_to_parse', {},
my $error = join("\n", $mail_html->errstr) || 'Unknown error';
Sympa::Report::reject_report_web('user', 'unable_to_parse',
{error => $error},
$param->{'action'});
wwslog(
'info',
'A MIME part could not be created with the supplied data, %s, %s',
'A MIME part could not be created with the supplied data, %s, %s: %s',
$in{'url'},
$in{'uploaded_file'}
$in{'uploaded_file'},
$error
);
return undef;
}
......
Supports Markdown
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