[−][src]Function ritual_common::errors::err_msg
pub fn err_msg<D>(msg: D) -> Error where
D: 'static + Send + Sync + Debug + Display,
Constructs a Fail
type from a string.
This is a convenient way to turn a string into an error value that
can be passed around, if you do not want to create a new Fail
type for
this use case.