Author: mozbugbox <[email protected]>
Branch:
Changeset: r1485:52c29b6665c2
Date: 2014-04-01 08:29 +0800
http://bitbucket.org/cffi/cffi/changeset/52c29b6665c2/
Log: Update exception args instead of use print on re-raise FFIError
diff --git a/cffi/cparser.py b/cffi/cparser.py
--- a/cffi/cparser.py
+++ b/cffi/cparser.py
@@ -207,7 +207,7 @@
except api.FFIError as e:
msg = self._convert_pycparser_error(e, csource)
if msg:
- print("*** Error: %s" % msg)
+ e.args = (e.args[0] + "\n *** Err: %s" % msg,)
raise
def _parse_decl(self, decl):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit