pub fn error<S>(msg: S) -> Errorwhere
    S: Into<String>,