Skip to content

Commit

Permalink
Provide encapsulated Tls error information
Browse files Browse the repository at this point in the history
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
squidowl/halloy#143
  • Loading branch information
ljrk0 committed Jul 11, 2023
1 parent 26ab942 commit 5658fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub enum Error {

/// An internal TLS error.
#[cfg(all(feature = "tls-native", not(feature = "tls-rust")))]
#[error("a TLS error occurred")]
#[error("a TLS error occurred: {0}")]
Tls(
#[source]
#[from]
Expand Down

0 comments on commit 5658fe5

Please sign in to comment.