doubles icon indicating copy to clipboard operation
doubles copied to clipboard

Show diff of arguments when they don't match

Open charlax opened this issue 6 years ago • 4 comments

It would be nice to know why arguments do not match when there's a single allowance, e.g.:

doubles.exceptions.UnallowedMethodCallError: Received unexpected call to '...' on <...>.  The supplied arguments (...) do not match allowance, missing key 'toaster' required in allowance.

charlax avatar Apr 04 '19 12:04 charlax

Can you please attach example?

skudriashev avatar Apr 05 '19 19:04 skudriashev

I'm not sure to understand your question @skudriashev... I included an example in my message...

charlax avatar Apr 24 '19 07:04 charlax

I mean runnable code, if possible.

skudriashev avatar Apr 25 '19 03:04 skudriashev

Oh there would be no change in the API, just a change in the error message.

On Thu 25 Apr 2019 at 05:55, Stanislav Kudriashev [email protected] wrote:

I mean runnable code, if possible.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/uber/doubles/issues/143#issuecomment-486510425, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA5NNJZSAQ3452KOITC5NLPSETRZANCNFSM4HDSZ44A .

charlax avatar Apr 25 '19 08:04 charlax