pub fn find_pattern_error(error_str: &str, contents: String) -> String