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
Exception thrown by argument constraint factory is wrapped in TargetInvocationException, not UserCallbackException #1646
Comments
@blairconrad have you started working on this already? I hadn't noticed you had assigned it to yourself, and I just implemented a fix... |
Well, I almost implemented a fix... I think the error message needs some work!
|
OK, that works better if the constraint factory is a method rather than a delegate. |
Cool! I pushed my branch.
No, but when we can provide a representation of the callback that threw, we do. In this case it's an expression, so we can just
The inner exception does provide details, but it doesn't say what the faulty expression was. I'm not going to try to improve the expression right now. The problem exists in other places as well, and if we want to do something about it, I think we should do it separately. |
This change has been released as part of FakeItEasy 5.3.0. |
No description provided.
The text was updated successfully, but these errors were encountered: