# HG changeset patch # User Chris Cannam # Date 1446550560 0 # Node ID 08d492f861e92df7bbe940b9b4e50d4fa2103ed0 # Parent cdd825dbba35958052ffc4b828f1b6a22c6a74e5 More useful report when a transform is completely unknown to us diff -r cdd825dbba35 -r 08d492f861e9 runner/FeatureExtractionManager.cpp --- a/runner/FeatureExtractionManager.cpp Fri Oct 02 08:41:55 2015 +0100 +++ b/runner/FeatureExtractionManager.cpp Tue Nov 03 11:36:00 2015 +0000 @@ -233,6 +233,9 @@ // option print out only Vamp transforms cerr << "ERROR: Failed to load plugin for transform \"" << transform.getIdentifier().toStdString() << "\"" << endl; + if (pb) { + cerr << "NOTE: (A plugin was loaded, but apparently not a Vamp plugin)" << endl; + } delete pb; return false; } @@ -414,7 +417,13 @@ Transform transform = tf->getDefaultTransformFor(transformId, m_sampleRate); - return addFeatureExtractor(transform, writers); + bool result = addFeatureExtractor(transform, writers); + if (!result) { + if (transform.getType() == Transform::UnknownType) { + cerr << "(Maybe mixed up filename with transform, or --transform with --default?)" << endl; + } + } + return result; } bool FeatureExtractionManager::addFeatureExtractorFromFile