Merge pull request #2299 from pshriwise/ww_msg

Correction to error message regarding WW shape
This commit is contained in:
Paul Romano 2022-11-15 05:25:41 -08:00 committed by GitHub
commit 7980d0b4c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,10 +181,10 @@ WeightWindows::WeightWindows(pugi::xml_node node)
int num_weight_bins = lower_ww_.size();
if (num_weight_bins != num_spatial_bins * num_energy_bins) {
auto err_msg =
fmt::format("In weight window domain {} the number of spatial "
fmt::format("In weight window domain {} the number of "
"energy/spatial bins ({}) does not match the number "
"of weight bins ({})",
id_, num_energy_bins, num_weight_bins);
"of weight bins provided ({})",
id_, num_energy_bins * num_spatial_bins, num_weight_bins);
fatal_error(err_msg);
}
}