Commit c84dd102 authored by Robert Bradshaw's avatar Robert Bradshaw

Better error message on bad type cimport.

parent 2393e033
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment