Author: Armin Rigo <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit