Skip to content

Commit 5ae8824

Browse files
author
Paolo Tranquilli
committed
Rust: add context to parameter file expansion errors
1 parent 6adf885 commit 5ae8824

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/extractor/src/config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ pub struct Config {
4040

4141
impl Config {
4242
pub fn extract() -> anyhow::Result<Config> {
43-
let args = argfile::expand_args(argfile::parse_fromfile, argfile::PREFIX)?;
43+
let args = argfile::expand_args(argfile::parse_fromfile, argfile::PREFIX)
44+
.context("expanding parameter files")?;
4445
let cli_args = CliConfig::parse_from(args);
4546
Figment::new()
4647
.merge(Env::prefixed("CODEQL_EXTRACTOR_RUST_"))

0 commit comments

Comments
 (0)