Use right function in exceptions #26

Closed
eproxus opened this Issue May 30, 2011 · 0 comments

1 participant

@eproxus
Owner

Rewrite exception handling so that exceptions look like they come from the mocked module.

1> meck:new(test, [no_link]).
ok
2> Foo = fun(A) when is_integer(A) -> bar end.
#Fun<erl_eval.6.80247286>
3> meck:expect(test, foo, Foo).
ok
4> test:foo(a).
** exception error: no function clause matching
                    erl_eval:'-inside-an-interpreted-fun-'(a)

Exception should look like the following:

4> test:foo(a).
** exception error: no function clause matching
                    test:foo(a)
@eproxus eproxus was assigned May 30, 2011
@eproxus eproxus closed this Mar 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment