Skip to content

Commit

Permalink
updating error message
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsteuteville committed Jun 4, 2024
1 parent e468e3f commit 24f69cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/fastsim-core/src/vehicle_import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ pub fn get_vehicle_data_for_id(
load_fegov_data_for_given_years(ddpath.as_path(), &emissions_data, &ys)?;
let fegov_db = fegov_data_by_year
.get(&y)
.with_context(format!("Could not get fueleconomy.gov data from year {y}"))?;
.with_context(|| format!("Could not get fueleconomy.gov data from year {y}"))?;
for item in fegov_db.iter() {
if item.id == id {
return Ok(item.clone());
Expand Down

0 comments on commit 24f69cb

Please sign in to comment.