Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ function handleOutput(array $lines, float $minimumPercentCovered, Output $output


if ($coveredLines + $uncoveredLines == 0) {
error_log('No lines found!');
return;
throw new Exception(
'No lines found!',
3
);
}

$percentCovered = 100 * ($coveredLines / ($coveredLines + $uncoveredLines));
Expand Down