Skip to content

Commit ec3db76

Browse files
committed
make threshold failure more obvious
1 parent 1ade053 commit ec3db76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coverlet.msbuild.tasks/CoverageResultTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public override bool Execute()
7373

7474
double average = total / result.Modules.Count;
7575
if (average < _threshold)
76-
return false;
76+
throw new Exception($"Overall average coverage '{average}%' is lower than specified threshold '{_threshold}%'");
7777
}
7878
catch (Exception ex)
7979
{

0 commit comments

Comments
 (0)