Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r45166:601287e40b56
Date: 2011-06-28 19:14 +0200
http://bitbucket.org/pypy/pypy/changeset/601287e40b56/

Log:    Maybe improve the error message? A slightly more verbose one would
        not hurt, like the name of extension

diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -562,7 +562,8 @@
             elif callable.api_func.restype is not lltype.Void:
                 retval = rffi.cast(callable.api_func.restype, result)
         except Exception, e:
-            print 'Fatal error in cpyext, calling', callable.__name__
+            print 'Fatal error in cpyext, CPython compatibility layer, 
calling', callable.__name__
+            print 'Either report a bug or consider not using this particular 
extension'
             if not we_are_translated():
                 import traceback
                 traceback.print_exc()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to