diff --git a/src/weight_windows.cpp b/src/weight_windows.cpp index f0431f71f2..e8e8f4b052 100644 --- a/src/weight_windows.cpp +++ b/src/weight_windows.cpp @@ -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); } }