comparison rdf/generator/template-generator.cpp @ 151:58f4d399a85d

* bail if nonexistent library specified
author cannam
date Tue, 24 Jun 2008 09:35:38 +0000
parents afd60ff5ceef
children 3ec175bf5249
comparison
equal deleted inserted replaced
150:573114586df1 151:58f4d399a85d
383 cerr << "ERROR: Plugin \"" << list[i] << "\" could not be loaded" << endl; 383 cerr << "ERROR: Plugin \"" << list[i] << "\" could not be loaded" << endl;
384 exit(1); 384 exit(1);
385 } 385 }
386 plugins.push_back(plugin); 386 plugins.push_back(plugin);
387 } 387 }
388
389 if (plugins.empty()) {
390 cerr << "ERROR: Plugin library \"" << mylibname << "\" does not exist, could not be opened, or contains no plugins" << endl;
391 exit(1);
392 }
393
388 } else { // pluginName is a plugin 394 } else { // pluginName is a plugin
389 395
390 Plugin *plugin = loader->loadPlugin(pluginName, size_t(44100)); 396 Plugin *plugin = loader->loadPlugin(pluginName, size_t(44100));
391 if (!plugin) { 397 if (!plugin) {
392 cerr << "ERROR: Plugin \"" << pluginName << "\" could not be loaded" << endl; 398 cerr << "ERROR: Plugin \"" << pluginName << "\" could not be loaded" << endl;