Rust: add context to parameter file expansion errors

This commit is contained in:
Paolo Tranquilli
2024-09-12 08:56:07 +02:00
parent 6adf88542e
commit 5ae8824303

View File

@@ -40,7 +40,8 @@ pub struct Config {
impl Config {
pub fn extract() -> anyhow::Result<Config> {
let args = argfile::expand_args(argfile::parse_fromfile, argfile::PREFIX)?;
let args = argfile::expand_args(argfile::parse_fromfile, argfile::PREFIX)
.context("expanding parameter files")?;
let cli_args = CliConfig::parse_from(args);
Figment::new()
.merge(Env::prefixed("CODEQL_EXTRACTOR_RUST_"))