aatxe / irc

the irc crate – usable, async IRC for Rust
Mozilla Public License 2.0
525 stars 100 forks source link

Provide encapsulated Tls error information #253

Closed ljrk0 closed 3 months ago

ljrk0 commented 12 months ago

When .to_string() is invoked on a the crate-wide Error enum, the error message using #[error("...")] is displayed. Some of those wrapped internal enums also contain, possibly more helpful, error messages. This will include the string gathered by .to_string() from the encapsulated enum in the main error message.

See also https://github.com/squidowl/halloy/pull/143