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