Skip to content
This repository

Use right function in exceptions #26

Closed
eproxus opened this Issue · 0 comments

1 participant

Adam Lindberg
Adam Lindberg
Owner
eproxus commented

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)
Adam Lindberg eproxus closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.