Better error message on bad type cimport.
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 9 Dec 2009 07:16:06 +0000 (23:16 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 9 Dec 2009 07:16:06 +0000 (23:16 -0800)
Cython/Compiler/ModuleNode.py

index 4770d47dd09777992a31c453ae525bcee509244d..7469a1812ce9107d4546a3958a381412e985a285 100644 (file)
@@ -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;
     }