-
Notifications
You must be signed in to change notification settings - Fork 89
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
clearer messages when a referenced file is missing #423
Comments
/bounty $20 |
💎 $20 bounty • GritSteps to solve:
Thank you for contributing to getgrit/gritql! Add a bounty • Share on socials
|
/attempt #423
|
Thanks @asr2003, please be sure to include an integration test in https://github.com/getgrit/gritql/tree/main/crates/cli_bin/tests |
@morgante I have seen two related files of it. Do I make changes to both files or patterns.rs is fine? |
You need to solve the issue. I'm not going to handhold you through every detail. |
my first stab at it: #479 |
/attempt #423
|
…t will fail until the better missing file message is implemented see getgrit#423
…e()` awaits if the function fails to find the repo root or fails to read the file path fixes getgrit#423
💡 @Alex-ley-scrub submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
…d of inline updating an existing fixture see getgrit#423
🎉🎈 @Alex-ley-scrub has been awarded $20! 🎈🎊 |
Earlier today, I was updating some patterns and when I went to run
grit patterns test
hit the following.I did all the usual things thinking this was something I broke in my environment (somehow lost grit) however, that all looked good. After a while, I busted out strace and it turned out this came from grit trying to look up a file in the pattern.
Yep, I did a stupid and removed a trailing letter of the file extension.
To make this easier to debug for others, perhaps wrapping this sort of error up in a nicer handler would be useful? Something like this would be helpful:
The text was updated successfully, but these errors were encountered: