# HG changeset patch # User Chris Cannam # Date 1412778408 -3600 # Node ID dcecd6997214901f037a73b190758aafa708eb26 # Parent 7a31201dc42df8257446d06be0b07edc12aee2e6 Abandon if we fail to add a transform; don't continue with the remaining transforms (that's very confusing behaviour) diff -r 7a31201dc42d -r dcecd6997214 runner/main.cpp --- 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; } }