diff runner/main.cpp @ 120:dcecd6997214 test-reorg

Abandon if we fail to add a transform; don't continue with the remaining transforms (that's very confusing behaviour)
author Chris Cannam
date Wed, 08 Oct 2014 15:26:48 +0100
parents 5be4995f4029
children 685e5cf3cb1d
line wrap: on
line diff
--- a/runner/main.cpp	Wed Oct 08 15:08:57 2014 +0100
+++ b/runner/main.cpp	Wed Oct 08 15:26:48 2014 +0100
@@ -766,6 +766,9 @@
              i != requestedTransformFiles.end(); ++i) {
             if (manager.addFeatureExtractorFromFile(i->c_str(), writers)) {
                 haveFeatureExtractor = true;
+            } else {
+                cerr << "ERROR: Failed to add feature extractor from transform file \"" << *i << "\"" << endl;
+                good = false;
             }
         }
 
@@ -773,6 +776,9 @@
              i != requestedDefaultTransforms.end(); ++i) {
             if (manager.addDefaultFeatureExtractor(i->c_str(), writers)) {
                 haveFeatureExtractor = true;
+            } else {
+                cerr << "ERROR: Failed to add default feature extractor for transform \"" << *i << "\"" << endl;
+                good = false;
             }
         }