[pypy-commit] cffi default: Tweak the error message

arigo noreply at buildbot.pypy.org
Sun Jul 14 07:17:31 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1276:a120d2a4a9a5
Date: 2013-07-14 07:17 +0200
http://bitbucket.org/cffi/cffi/changeset/a120d2a4a9a5/

Log:	Tweak the error message

diff --git a/cffi/cparser.py b/cffi/cparser.py
--- a/cffi/cparser.py
+++ b/cffi/cparser.py
@@ -500,8 +500,8 @@
                 self._partial_length = True
                 return None
         #
-        raise api.FFIError("unsupported non-constant or "
-                           "not immediately constant expression")
+        raise api.FFIError("unsupported expression: expected a "
+                           "simple numeric constant")
 
     def _build_enum_type(self, explicit_name, decls):
         if decls is not None:


More information about the pypy-commit mailing list