From c3c5abeef9492faf2759af04df966311fab43302 Mon Sep 17 00:00:00 2001 From: djk Date: Sat, 10 Jun 2000 18:11:46 +0000 Subject: [PATCH] *** empty log message *** --- perl/DXMsg.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/perl/DXMsg.pm b/perl/DXMsg.pm index b9e4a63e..65577607 100644 --- a/perl/DXMsg.pm +++ b/perl/DXMsg.pm @@ -507,6 +507,7 @@ sub read_msg_header $file = new IO::File "$fn"; if (!$file) { dbg('err', "Error reading $fn $!"); + Log('err', "Error reading $fn $!"); return undef; } $size = -s $fn; @@ -515,6 +516,7 @@ sub read_msg_header $size -= length $line; if (! $line =~ /^===/o) { dbg('err', "corrupt first line in $fn ($line)"); + Log('err', "corrupt first line in $fn ($line)"); return undef; } $line =~ s/^=== //o; @@ -526,6 +528,7 @@ sub read_msg_header $size -= length $line; if (! $line =~ /^===/o) { dbg('err', "corrupt second line in $fn ($line)"); + Log('err', "corrupt second line in $fn ($line)"); return undef; } $line =~ s/^=== //o; @@ -552,6 +555,7 @@ sub read_msg_body $file = new IO::File; if (!open($file, $fn)) { dbg('err' ,"Error reading $fn $!"); + Log('err' ,"Error reading $fn $!"); return undef; } @out = map {chomp; $_} <$file>; -- 2.43.0