{"id":"da7c92031afc08b2","repo":"BurntSushi/ripgrep","slug":"error","errorCode":null,"errorMessage":"{}: {}","messagePattern":"\\{\\}: \\{\\}","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/core/flags/config.rs","lineNumber":69,"sourceCode":"    );\n    args\n}\n\n/// Parse a single ripgrep rc file from the given path.\n///\n/// On success, this returns a set of shell arguments, in order, that should\n/// be pre-pended to the arguments given to ripgrep at the command line.\n///\n/// If the file could not be read, then an error is returned. If there was\n/// a problem parsing one or more lines in the file, then errors are returned\n/// for each line in addition to successfully parsed arguments.\nfn parse<P: AsRef<Path>>(\n    path: P,\n) -> anyhow::Result<(Vec<OsString>, Vec<anyhow::Error>)> {\n    let path = path.as_ref();\n    match std::fs::File::open(&path) {\n        Ok(file) => parse_reader(file),\n        Err(err) => anyhow::bail!(\"{}: {}\", path.display(), err),\n    }\n}\n\n/// Parse a single ripgrep rc file from the given reader.\n///\n/// Callers should not provided a buffered reader, as this routine will use its\n/// own buffer internally.\n///\n/// On success, this returns a set of shell arguments, in order, that should\n/// be pre-pended to the arguments given to ripgrep at the command line.\n///\n/// If the reader could not be read, then an error is returned. If there was a\n/// problem parsing one or more lines, then errors are returned for each line\n/// in addition to successfully parsed arguments.\nfn parse_reader<R: std::io::Read>(\n    rdr: R,\n) -> anyhow::Result<(Vec<OsString>, Vec<anyhow::Error>)> {\n    let mut bufrdr = std::io::BufReader::new(rdr);","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/BurntSushi/ripgrep/blob/3fce3b5bb0236da2df6d99672afb8a719642eca7/crates/core/flags/config.rs#L51-L87","documentation":"Error \"{}: {}\" thrown in BurntSushi/ripgrep.","triggerScenarios":"Thrown at crates/core/flags/config.rs:69 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the file path and underlying error shown in the message","Verify the config file exists and is readable by the current user"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"3fce3b5bb0236da2df6d99672afb8a719642eca7","analyzedAt":"2026-08-06T01:39:05.073Z","schemaVersion":2}