make threshold failure more obvious

This commit is contained in:
Toni Solarin-Sodara
2018-04-17 23:27:35 +01:00
parent 1ade05357f
commit ec3db76e1c
@@ -73,7 +73,7 @@ namespace Coverlet.MSbuild.Tasks
double average = total / result.Modules.Count;
if (average < _threshold)
return false;
throw new Exception($"Overall average coverage '{average}%' is lower than specified threshold '{_threshold}%'");
}
catch (Exception ex)
{