You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2026/10/08 13:25:08 UTC
[I] cli: print errors and their causes instead of the Debug value [iggy]
justinmclean opened a new issue, #4464:
URL: https://github.com/apache/iggy/issues/4464
Split from #4452.
## Problem
When a command fails, `main` returns the error (`core/cli/src/main.rs:359`), so Rust prints its `Debug` value. For example, `iggy ping` against a stopped server ends with:
```
Error: IggyClient(SdkError(CannotEstablishConnection))
```
The top-level `Display` is only a label, for example "Iggy client error", so printing `Display` alone does not help either.
## Proposal
Handle the error in `main`: print the error and its cause chain to stderr, one cause per line, and exit with code 1. Do not change the exit codes here. Distinct exit codes stay in #4452.
## Acceptance
- `iggy ping` against a stopped server prints a readable message and its causes, with no Rust type names.
- A failing command still exits with code 1.
- Existing CLI integration tests that check error output are updated and pass.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] cli: print errors and their causes instead of the Debug value [iggy]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #4464:
URL: https://github.com/apache/iggy/issues/4464#issuecomment-6076446476
@0xdef4 all yours to work on, thanks for the help.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] cli: print errors and their causes instead of the Debug value [iggy]
Posted by "hubcio (via GitHub)" <gi...@apache.org>.
hubcio closed issue #4464: cli: print errors and their causes instead of the Debug value
URL: https://github.com/apache/iggy/issues/4464
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] cli: print errors and their causes instead of the Debug value [iggy]
Posted by "0xdef4 (via GitHub)" <gi...@apache.org>.
0xdef4 commented on issue #4464:
URL: https://github.com/apache/iggy/issues/4464#issuecomment-6075960854
Hello, could you assign this issue to me. I’d like to give it a try. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org