Skip to content

Commit

Permalink
Update lib/ProductOpener/Mail.pm
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Garel <[email protected]>
  • Loading branch information
raphael0202 and alexgarel authored Jul 21, 2023
1 parent 81976b2 commit 2d8429e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ProductOpener/Mail.pm
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ sub get_html_email_content ($filename, $lang) {
$file = "$data_root/lang/en/emails/$filename";
}

open(my $IN, "<:encoding(UTF-8)", $file);
open(my $IN, "<:encoding(UTF-8)", $file) or log->error("Can't open $file for reading");
return unless $IN;
my $html = join('', (<$IN>));
close($IN);
return $html;
Expand Down

0 comments on commit 2d8429e

Please sign in to comment.