From c84dd1028fc1c913bc8a49871a15f941eeda1ef1 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Tue, 8 Dec 2009 23:16:06 -0800 Subject: [PATCH] Better error message on bad type cimport. --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.26.2