[pypy-commit] cffi default: Maybe a better error message
arigo
noreply at buildbot.pypy.org
Tue Jan 21 13:16:47 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1458:61c4b449086c
Date: 2014-01-21 13:16 +0100
http://bitbucket.org/cffi/cffi/changeset/61c4b449086c/
Log: Maybe a better error message
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -835,7 +835,7 @@
return new_simple_cdata(ptrdata, ct);
}
else if (ct->ct_flags & CT_IS_OPAQUE) {
- PyErr_Format(PyExc_TypeError, "cannot return a cdata '%s'",
+ PyErr_Format(PyExc_TypeError, "cdata '%s' is opaque",
ct->ct_name);
return NULL;
}
More information about the pypy-commit
mailing list