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