From: Robert Bradshaw Date: Wed, 9 Dec 2009 07:16:06 +0000 (-0800) Subject: Better error message on bad type cimport. X-Git-Tag: 0.12.1~52 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=c84dd1028fc1c913bc8a49871a15f941eeda1ef1;p=cython.git Better error message on bad type cimport. --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 4770d47d..7469a181 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -2199,7 +2199,7 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class } if (!size_ok) { PyErr_Format(PyExc_ValueError, - "%s.%s does not appear to be the correct type object", + "%s.%s is the wrong size, try recompiling", module_name, class_name); goto bad; }