comparison transform/TransformFactory.cpp @ 1227:5d886b7b4029 piper

Error reporting for Piper server startup
author Chris Cannam
date Fri, 21 Oct 2016 16:24:30 +0100
parents ba16388b937d
children a99641535e02
comparison
equal deleted inserted replaced
1226:91ff08313375 1227:5d886b7b4029
403 void 403 void
404 TransformFactory::populateFeatureExtractionPlugins(TransformDescriptionMap &transforms) 404 TransformFactory::populateFeatureExtractionPlugins(TransformDescriptionMap &transforms)
405 { 405 {
406 FeatureExtractionPluginFactory *factory = 406 FeatureExtractionPluginFactory *factory =
407 FeatureExtractionPluginFactory::instance(); 407 FeatureExtractionPluginFactory::instance();
408 408
409 std::vector<QString> plugs = factory->getPluginIdentifiers(); 409 QString errorMessage;
410 std::vector<QString> plugs = factory->getPluginIdentifiers(errorMessage);
411 if (errorMessage != "") {
412 m_errorString = tr("Failed to list Vamp plugins: %1").arg(errorMessage);
413 }
410 414
411 if (m_exiting) return; 415 if (m_exiting) return;
412 416
413 for (int i = 0; i < (int)plugs.size(); ++i) { 417 for (int i = 0; i < (int)plugs.size(); ++i) {
414 418