Skip to content

Commit

Permalink
fixup! feat: use instruments list as arg and move instruments inside …
Browse files Browse the repository at this point in the history
…config
  • Loading branch information
adriencaccia committed Jan 17, 2024
1 parent 63412c9 commit 358b9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/instruments/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl TryFrom<&AppArgs> for Instruments {
for instrument_name in &args.instruments {
match instrument_name.as_str() {
"mongodb" => validated_instrument_names.insert(InstrumentNames::MongoDB),
_ => return Err(anyhow!("Invalid instrument name: {}", instrument_name)),
_ => bail!("Invalid instrument name: {}", instrument_name),
};
}

Expand Down

0 comments on commit 358b9fc

Please sign in to comment.