Skip to content

Commit

Permalink
Add component id in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 16, 2024
1 parent 1c9f0c6 commit 3529109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/study/system-model/component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static void checkComponentDataValidity(const ComponentData& data)
if (data.model->Parameters().size() != data.parameter_values.size())
{
throw std::invalid_argument(
"The component has " + std::to_string(data.parameter_values.size())
"The component \"" + data.id + "\" has " + std::to_string(data.parameter_values.size())
+ " parameter(s), but its model has " + std::to_string(data.model->Parameters().size()));
}
for (const auto param: data.model->Parameters() | std::views::keys)
Expand Down

0 comments on commit 3529109

Please sign in to comment.