pub fn error_chain(error: &(dyn Error + 'static)) -> StringExpand description
Formats error followed by every error in its source() chain, joined by ": ".
A fetch error’s own message can be generic (“HTTP request failed”); the detail sits further down the chain. The bindings use this to build one complete message.
§Examples
use feedparser_rs::http::{error_chain, validate_url};
let err = validate_url("not a url").unwrap_err();
assert!(error_chain(&err).starts_with("Invalid URL"));