err

Function err 

Source
pub fn err<T>(msg: impl Into<String>) -> Result<T>
Expand description

Convenience: return an Err(Error::msg(msg)).