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