diff 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
line wrap: on
line diff
--- a/plugin/PluginScan.cpp	Wed Aug 29 17:42:06 2018 +0100
+++ b/plugin/PluginScan.cpp	Thu Aug 30 12:59:16 2018 +0100
@@ -290,7 +290,9 @@
     QString report;
     for (auto kp: m_kp) {
         auto failures = kp.second->getFailures();
-        report += formatFailureReport(kp.first, failures);
+        if (!failures.empty()) {
+            report += formatFailureReport(kp.first, failures);
+        }
     }
     if (report == "") {
         return report;