Skip to content

Commit 5e57505

Browse files
committed
Improved message when source file is empty or unreadable. See #321.
Signed-off-by: Henry Cox <henry.cox@mediatek.com>
1 parent 278ac87 commit 5e57505

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/genhtml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5122,12 +5122,13 @@ sub _synthesize
51225122
# Synthesize source data from coverage trace to replace unreadable file
51235123
my $suffix =
51245124
$lcovutil::ignore[$lcovutil::ERROR_SOURCE] ?
5125-
' - synthesizing fake content' :
5126-
'';
5125+
' - synthesizing fake content.' :
5126+
'.';
51275127
lcovutil::ignorable_error($lcovutil::ERROR_SOURCE,
5128-
"cannot read '" . $self->path() . "'$suffix")
5128+
"cannot read '" . $self->path() .
5129+
"' - file is empty or unreadable$suffix")
51295130
unless $main::no_sourceview;
5130-
$why = 'not found';
5131+
$why = 'empty or unreadable';
51315132
} else {
51325133
my $suffix = '';
51335134
if ($lcovutil::ignore[$lcovutil::ERROR_RANGE]) {

0 commit comments

Comments
 (0)