pub fn parse_sugar_errors(msg: &str) -> String