diff options
author | Armin Rigo <arigo@tunes.org> | 2016-05-10 11:39:52 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2016-05-10 11:39:52 +0200 |
commit | 02dcb95785056a39797b6938759a5888283a9c5c (patch) | |
tree | b91116ab2d2e12a542318258771a169499eff67d /cffi/commontypes.py | |
parent | 1ec27778809c471e6dc0ec5037addd45a57c35e1 (diff) | |
download | cffi-02dcb95785056a39797b6938759a5888283a9c5c.tar.gz |
Expand the error message
Diffstat (limited to 'cffi/commontypes.py')
-rw-r--r-- | cffi/commontypes.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cffi/commontypes.py b/cffi/commontypes.py index 3d11aae..edf6c8e 100644 --- a/cffi/commontypes.py +++ b/cffi/commontypes.py @@ -35,8 +35,11 @@ def resolve_common_type(parser, commontype): "you call ffi.set_unicode()" % (commontype,)) else: if commontype == cdecl: - raise api.FFIError("Unsupported type: %r. Please file a bug " - "if you think it should be." % (commontype,)) + raise api.FFIError( + "Unsupported type: %r. Please look at " + "http://cffi.readthedocs.io/en/latest/cdef.html#ffi-cdef-limitations " + "and file an issue if you think this type should really " + "be supported." % (commontype,)) result, quals = parser.parse_type_and_quals(cdecl) # recursive assert isinstance(result, model.BaseTypeByIdentity) |