-
Notifications
You must be signed in to change notification settings - Fork 16
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
[Bug]: deal send-manual - stack trace on rejected deal #291
Comments
This is a general issue not just for
@ze42 would above make sense to you. |
If I understand correctly:
If that's it, yeah, it looks good to me. |
Putting into a matrix below
|
You often state stderr as I would usually expect stderr to also include some base output stating there were an error. Ie: would help if doing something like:
And have directly in the output the fact that it also failed, not having to double check the logfile to see if it failed or not. So, just suggesting to have along what you suggest, some more log. |
Oh yes, all logging are going to stderr and is controlled by https://github.com/ipfs/go-log I want to decouple it from the |
Yeah, so all fine... just make sure to include some logs about the errors, with something like the "simple error message" in all error case? Such error cases should include any failure to validate arguments. (Had error with file-size malformated, and had to dig into stdout logs to find there was something wrong with it...) |
Most of the places where the error message is not clear have been fixed, i.e., instead of showing Let me know if you encounter any unclear error message so I can make corresponding fixes |
resolves #291 | Success? | --verbose | --json | stdout | stderr | exitcode | |--------|--------|--------|--------|--------|--------| | ✅ | ❌ | ❌ | simple CLI table | none | 0 | | ✅ | ❌ | ✅ | prettified JSON | none | 0 | | ✅ | ✅ | ❌ | verbose CLI table | none | 0 | | ✅ | ✅ | ✅ | prettified JSON | none | 0 | | ❌ | ❌ | ❌ | simple error message | none | 1 | | ❌ | ❌ | ✅ | error message wrapped in JSON | none | 1 | | ❌ | ✅ | ❌ | simple error message | error message stack trace | 1 | | ❌ | ✅ | ✅ | erorr message wrapped in JSON | error message stack trace | 1 | However, due to limitation of urfave/cli, behavior of below cases do not belong to above table * required flags not provided - urfave library will print the help page and then print the error message to the console
Description
Steps to Reproduce
Send a deal, to a provider that will reject your deal.
Version
v0.4.1-a0e6ea6
Operating System
Linux
Database Backend
PostgreSQL
Additional context
The text was updated successfully, but these errors were encountered: