Skip to content

Commit

Permalink
C#: Consider the extraction of empty binlog files acceptable
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasvajk committed Nov 15, 2024
1 parent 67684d1 commit da55732
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,15 @@ static bool filter(CompilerCall compilerCall)
var allCompilationData = reader.ReadAllCompilationData(filter);
var allFailed = true;

logger.LogInfo($" Found {allCompilationData.Count} compilations in binary log");
if (allCompilationData.Count == 0)
{
logger.LogWarning(" No compilations found in binary log.");
return ExitCode.Ok;
}
else
{
logger.LogInfo($" Found {allCompilationData.Count} compilations in binary log");
}

foreach (var compilationData in allCompilationData)
{
Expand Down

0 comments on commit da55732

Please sign in to comment.