Commits

Armin Rigo  committed e31552c

Fix error message

  • Participants
  • Parent commits 4897f95

Comments (0)

Files changed (1)

File pypy/module/_cffi_backend/ctypefunc.py

         for i, cf in enumerate(ctype.fields_list):
             if cf.is_bitfield():
                 raise OperationError(space.w_NotImplementedError,
-                    space.wrap("cannot pass as argument a struct "
-                               "with bit fields"))
+                    space.wrap("cannot pass as argument or return value "
+                               "a struct with bit fields"))
             ffi_subtype = self.fb_fill_type(cf.ctype, False)
             if elements:
                 elements[i] = ffi_subtype