Mercurial > hg > svcore
comparison plugin/PluginScan.cpp @ 1502:2765b9db402b checker_errorcode
Avoid reporting failure when everything in fact succeeded!
| author | Chris Cannam |
|---|---|
| date | Thu, 30 Aug 2018 12:59:16 +0100 |
| parents | 0ee87bc10cdc |
| children | d7fdc77252c6 |
comparison
equal
deleted
inserted
replaced
| 1501:0ee87bc10cdc | 1502:2765b9db402b |
|---|---|
| 288 } | 288 } |
| 289 | 289 |
| 290 QString report; | 290 QString report; |
| 291 for (auto kp: m_kp) { | 291 for (auto kp: m_kp) { |
| 292 auto failures = kp.second->getFailures(); | 292 auto failures = kp.second->getFailures(); |
| 293 report += formatFailureReport(kp.first, failures); | 293 if (!failures.empty()) { |
| 294 report += formatFailureReport(kp.first, failures); | |
| 295 } | |
| 294 } | 296 } |
| 295 if (report == "") { | 297 if (report == "") { |
| 296 return report; | 298 return report; |
| 297 } | 299 } |
| 298 | 300 |
