Mercurial > hg > vampy
diff PyPlugScanner.cpp @ 8:3af6b5990ad8
more examples and some bug fixes
author | fazekasgy |
---|---|
date | Fri, 13 Jun 2008 16:50:00 +0000 |
parents | a4c955e9a70b |
children | 7d28bed0864e |
line wrap: on
line diff
--- a/PyPlugScanner.cpp Wed Jun 11 16:04:52 2008 +0000 +++ b/PyPlugScanner.cpp Fri Jun 13 16:50:00 2008 +0000 @@ -140,7 +140,13 @@ PyObject *pyInstance = PyObject_CallObject(pyClass, NULL); //cerr << "__(getInstance) PyPlugin Class: " << m_class << " successfully created.__" << endl; return pyInstance; - } else return NULL; + } + else { + cerr << "ERROR: callable plugin class could not be found in source: " << classname << endl + << "Hint: plugin source filename and plugin class name must be the same." << endl; + PyErr_Print(); + return NULL; + } }