Commits

Armin Rigo  committed a120d2a

Tweak the error message

  • Participants
  • Parent commits 1d4ca4f

Comments (0)

Files changed (1)

File cffi/cparser.py

                 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: