Commit 2a82935f authored by Armin Rigo's avatar Armin Rigo

issue #1832: provide a better error message for some cases

parent 6a30a5dd
......@@ -62,6 +62,8 @@ def raise_call_table_too_complex_error(callfamily, annotator):
msg.append("the following functions:")
msg.append(" %s" % ("\n ".join(pfg), ))
msg.append("are called with inconsistent numbers of arguments")
msg.append("(and/or the argument names are different, which is"
" not supported in this case)")
if shape1[0] != shape2[0]:
msg.append("sometimes with %s arguments, sometimes with %s" % (shape1[0], shape2[0]))
else:
......
......@@ -185,6 +185,7 @@ class TestNormalize(object):
.+Sub1.fn
.+Sub2.fn
are called with inconsistent numbers of arguments
\(and/or the argument names are different, which is not supported in this case\)
sometimes with \d arguments, sometimes with \d
the callers of these functions are:
.+otherfunc
......
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