mirror of
https://github.com/irongut/CodeCoverageSummary.git
synced 2026-06-09 22:40:46 +00:00
error if no files match glob pattern #31
This commit is contained in:
@@ -26,6 +26,12 @@ namespace CodeCoverageSummary
|
||||
matcher.AddIncludePatterns(o.Files.ToArray());
|
||||
IEnumerable<string> matchingFiles = matcher.GetResultsInFullPath(".");
|
||||
|
||||
if (matchingFiles?.Any() == false)
|
||||
{
|
||||
Console.WriteLine("Error: No files found matching glob pattern.");
|
||||
return -2; // error
|
||||
}
|
||||
|
||||
// check files exist
|
||||
foreach (var file in matchingFiles)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user