changeset 151:58f4d399a85d

* bail if nonexistent library specified
author cannam
date Tue, 24 Jun 2008 09:35:38 +0000
parents 573114586df1
children 3ec175bf5249
files rdf/generator/template-generator.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rdf/generator/template-generator.cpp	Mon Jun 23 16:15:24 2008 +0000
+++ b/rdf/generator/template-generator.cpp	Tue Jun 24 09:35:38 2008 +0000
@@ -385,6 +385,12 @@
                 }
                 plugins.push_back(plugin);
             }
+
+            if (plugins.empty()) {
+                cerr << "ERROR: Plugin library \"" << mylibname << "\" does not exist, could not be opened, or contains no plugins" << endl;
+                exit(1);
+            }
+
         } else { // pluginName is a plugin
 
             Plugin *plugin = loader->loadPlugin(pluginName, size_t(44100));