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.
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