diff --git a/src/study/system-model/component.cpp b/src/study/system-model/component.cpp index 66a6fcaefb..87b9991865 100644 --- a/src/study/system-model/component.cpp +++ b/src/study/system-model/component.cpp @@ -52,7 +52,7 @@ static void checkComponentDataValidity(const ComponentData& data) { if (!data.parameter_values.contains(param)) { - throw std::invalid_argument("The component has no value for parameter '" + param + "'"); + throw std::invalid_argument("The component \"" + data.id + "\" has no value for parameter '" + param + "'"); } } } diff --git a/src/tests/src/solver/modelParser/testSystemConverter.cpp b/src/tests/src/solver/modelParser/testSystemConverter.cpp index 9e5059a512..b9c8ff601b 100644 --- a/src/tests/src/solver/modelParser/testSystemConverter.cpp +++ b/src/tests/src/solver/modelParser/testSystemConverter.cpp @@ -265,5 +265,4 @@ BOOST_AUTO_TEST_CASE(Full_system_test) SystemParser::System systemObj = parserSystem.parse(systemYaml); /* BOOST_CHECK_NO_THROW(SystemConverter::convert(systemObj, libraries)); */ SystemConverter::convert(systemObj, libraries); - }