private void ShowNestedErrorWarningSummary()

in TeamCity.MSBuild.Logger/EventHandlers/BuildFinishedHandler.cs [184:204]


        private void ShowNestedErrorWarningSummary()
        {
            if (_context.WarningList?.Count == 0 && _context.ErrorList?.Count == 0 || _context.Parameters.ShowOnlyErrors || _context.Parameters.ShowOnlyWarnings)
            {
                return;
            }

            if (_context.WarningCount > 0)
            {
                _logWriter.SetColor(Color.WarningSummary);
                ShowErrorWarningSummary(_context.WarningList);
            }

            if (_context.ErrorCount > 0)
            {
                _logWriter.SetColor(Color.ErrorSummary);
                ShowErrorWarningSummary(_context.ErrorList);
            }

            _logWriter.ResetColor();
        }