changeset 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 7a31201dc42d
children 5200446bbc6b
files runner/main.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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;
             }
         }