Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use right function in exceptions #26

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

Use right function in exceptions #26

eproxus opened this issue May 30, 2011 · 0 comments
Assignees
Milestone

Comments

@eproxus
Copy link
Owner

eproxus commented May 30, 2011

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)
@ghost ghost assigned eproxus May 30, 2011
@eproxus eproxus closed this as completed Mar 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant