-
Notifications
You must be signed in to change notification settings - Fork 332
Make validation error messages more verbose #2102
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
Conversation
Dry-run check results |
|
Imo the actual fix is to change this line: Line 127 in a3e926d
to so that the error context is printed
|
|
Well, we use anyhow errors, so the Debug output will include all kind of crap, possibly even backtraces. I kind of like the single-line error messages that we have right now. Maybe the verbose output could be optional with |
|
this is how the error would look like. It doesn't contain crap, but the context of all the errors. Why wouldn't we want to print the error context? |
3738f6d to
833e23f
Compare
|
Ok, I tried it and it's better than I thought :) I don't understand why there's no backtrace, anyhow should normally capture it and print it. Anyway, I pushed an alternative implementation based on what you suggested, this is how it would look like: |
mmmh maybe you need to enable it as a feature? Never saw backtraces in anyhow |
|
No it's enabled by default. I just forgot that |
The inner context is not actually printed by sync-team, so it was swallowed. Found in https://github.com/rust-lang/team/actions/runs/19570968459/job/56044145703?pr=2101.