Commit 8dc8a614 authored by William Stein's avatar William Stein

Made some error output more verbose.

parent 5a02a703
......@@ -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
......
......@@ -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 1 argument from '%s' to '%s'" %
(old_type, new_type))
def generate_arg_conversion_from_pyobject(self, arg, code):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment