kdash icon indicating copy to clipboard operation
kdash copied to clipboard

Error messages are full of Rust noise

Open jayvdb opened this issue 10 months ago • 2 comments

When I have a DNS or connection error, there are lots of errors like

Failed to get namespaced resource kdash::app::pods::KubePod. Service(hyper_util::client::legacy::Error(Connect, ConnectError("dns error", Custom { kind:  

Only one line is used for the error, and the error gets cut off by whatever width the terminal has.

I can guess what is going wrong based on the "dns error" part of the error bar, but that is far from human friendly error message. If I had a smaller window even the "dns error" part wouldnt be visible.

jayvdb avatar Jan 29 '25 19:01 jayvdb

I guess would need to parse the error or write the error structs

Thanks & Regards, Deepu

On Wed, Jan 29, 2025 at 8:57 PM John Vandenberg @.***> wrote:

When I have a DNS or connection error, there are lots of errors like

Failed to get namespaced resource kdash::app::pods::KubePod. Service(hyper_util::client::legacy::Error(Connect, ConnectError("dns error", Custom { kind:

Only one line is used for the error, and the error gets cut off by whatever width the terminal has.

I can guess what is going wrong based on the "dns error" part of the error bar, but that is far from human friendly error message. If I had a smaller window even the "dns error" part wouldnt be visible.

— Reply to this email directly, view it on GitHub https://github.com/kdash-rs/kdash/issues/484, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIOKF7S7SHMJ2RD7U3JBDT2NEXBTAVCNFSM6AAAAABWDVLMXCVHI2DSMVQWIX3LMV43ASLTON2WKOZSHAYTSMJUGE3TAMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

deepu105 avatar Jan 30 '25 21:01 deepu105

If you have any suggestions, a PR is welcome, I'm a bit tight on time these days

deepu105 avatar Mar 05 '25 04:03 deepu105