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

Throw meaningful error message when trying to return non-objects from stub used as constructor #2532

Open
fatso83 opened this issue Aug 9, 2023 · 1 comment

Comments

@fatso83
Copy link
Contributor

fatso83 commented Aug 9, 2023

Is your feature request related to a problem? Please describe.
See #1676. User's think that not returning a string or other non-object is an error when newing up objects. We should rather explicitly throw an error message saying this is intended.

Describe the solution you'd like
Throw an error

@fatso83 fatso83 changed the title Throw meaningful error message when trying to return non-objects Throw meaningful error message when trying to return non-objects from stub used as constructor Aug 11, 2023
Copy link

stale bot commented Dec 27, 2023

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix label Dec 27, 2023
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