Made some error output more verbose.
authorWilliam Stein <wstein@gmail.com>
Fri, 3 Nov 2006 23:34:50 +0000 (15:34 -0800)
committerWilliam Stein <wstein@gmail.com>
Fri, 3 Nov 2006 23:34:50 +0000 (15:34 -0800)
Cython/Compiler/ExprNodes.py
Cython/Compiler/Nodes.py

index 22f421c3104b47e053d1123e463ac3a147a062e0..80ac7abfe8331519e50a1f206188521be2c6fb59 100644 (file)
@@ -4,7 +4,7 @@
 
 from string import join
 
-from Errors import error, InternalError
+from Errors import error, warning, InternalError
 import Naming
 from Nodes import Node
 import PyrexTypes
index ae42f5a6c67601354c48ee555548930d9e953e50..95f27e86d621351921f8b360684bc09040d4a8e5 100644 (file)
@@ -2171,7 +2171,7 @@ class DefNode(FuncDefNode):
                         arg_formats.append(format)
                     else:
                         error(arg.pos, 
-                            "Cannot convert Python object argument to type '%s'" 
+                            "Cannot convert Python object argument to type '%s' (when parsing input arguments)
                                 % arg.type)
             argformat = '"%s"' % string.join(arg_formats, "")
             has_starargs = self.star_arg is not None or self.starstar_arg is not None
@@ -2247,7 +2247,7 @@ class DefNode(FuncDefNode):
                     "%s = %s;" % (arg.entry.cname, arg.hdr_cname))
             else:
                 error(arg.pos,
-                    "Cannot convert argument from '%s' to '%s'" %
+                    "Cannot convert argument from '%s' to '%s'" %
                         (old_type, new_type))
     
     def generate_arg_conversion_from_pyobject(self, arg, code):