[plt-dev] slightly misleading error
On Fri, May 22, 2009 at 3:23 PM, Anthony Cowley <acowley at seas.upenn.edu> wrote:
> On Fri, May 22, 2009 at 3:09 PM, Dave Herman <dherman at ccs.neu.edu> wrote:
>>> How about:
>>>
>>> "the dynamic context of this expression expected 1 value, but this
>>> expression produced 2 values instead: a b"
>
> How about, "Expression produced 2 values, but the context exected 1."
That doesn't include a printout of the 2 values in question, nor a
particularly natural place to include them -- at the end of the
sentence would be misleading (they're not the 1 value the context
expected), and in the middle would break up the explanation if the
values took multiple lines to print.
--
Carl Eastlund