pub fn wrap<S: Into<Cow<'static, str>>, E: Into<Box<dyn Error + Send + Sync + 'static>>>(
inner: E,
message: S,
) -> impl ErrorExpand description
Wraps an existing error with a basic message.
Generates a std::error::Error compatible error which wraps the provided inner error with the given message. Can be used as the internal error for a crate::Error.
ยงExamples
use human_errors;
human_errors::wrap(
"ENOENT 2: No such file or directory",
"We could not open the config file you provided."
);