}
else {
# store failure log
- my $log;
+ my $log="";
{
- open(my $f, '<', "$tmp/$digest.log");
- local $/=undef;
- $log = <$f>;
- close($f);
+ if (open(my $f, '<', "$tmp/$digest.log")) {
+ local $/=undef;
+ $log = <$f>;
+ close($f);
+ }
}
writefile("$digest.log", "$config{destdir}/$imagedir", $log);
mailed.
* The password_cost config setting is provided as a "more security" knob.
* teximg: Fix logurl.
+ * teximg: If the log isn't written, avoid ugly error messages.
-- Joey Hess <joeyh@debian.org> Wed, 28 May 2008 03:07:37 -0400