Ignore:
Timestamp:
11/29/15 22:19:52 (9 years ago)
Author:
Maciej Komosinski
Message:

Validation of genotypes additionally prints genotype name when there are any problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/loggers/loggers.cpp

    r378 r452  
    123123        }
    124124}
     125
     126string LoggerToMemory::getCountSummary() const
     127{
     128if (getInfoCount())
     129        {
     130        string msg;
     131        if (getErrorCount())
     132                msg=ssprintf("%d error(s)",getErrorCount());
     133        int w;
     134        if (w=getWarningCount()-getErrorCount())
     135                msg+=ssprintf("%s%d warning(s)",(getErrorCount()?", ":""),w);
     136        if (w=getInfoCount()-getWarningCount())
     137                msg+=ssprintf("%s%d message(s)",(getWarningCount()?", ":""),w);
     138        return msg;
     139        }
     140return string("");
     141}
     142
Note: See TracChangeset for help on using the changeset viewer.