pub fn wrap<D, E>(message: D, cause: E) -> impl ErrorExpand description
Wrap an error with some additional message.
Includes the error as the source of this wrapped error.
use std::error::Error;
let err = errors::wrap("exploded", "cat hair in generator");
assert_eq!(err.to_string(), "exploded");
assert_eq!(err.source().unwrap().to_string(), "cat hair in generator");