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

Better error message for missing fixture #31

Open
la10736 opened this issue Apr 30, 2019 · 1 comment
Open

Better error message for missing fixture #31

la10736 opened this issue Apr 30, 2019 · 1 comment

Comments

@la10736
Copy link
Owner

la10736 commented Apr 30, 2019

Now we issue an error[E0433]: failed to resolve: use of undeclared type or module ...

Maybe we can use quote_span!{} in combination to check some fake field to report that the fixture function or annotation is missed.

Otherwise we can provide a good error by errors API at least in nightly

@la10736
Copy link
Owner Author

la10736 commented May 1, 2019

quote_spanned macro don't give a way to build custom error message and we cannot know if a fixture will be processed or not (by now we cannot know if it is already processed too). So we can investigate just nightly's error API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant