From 81771fbc76c869549a56145532d6177d53aa3eb4 Mon Sep 17 00:00:00 2001 From: Vincent Payet Date: Mon, 16 Dec 2024 16:09:44 +0100 Subject: [PATCH] logs and format --- src/study/system-model/component.cpp | 2 +- src/tests/src/solver/modelParser/testSystemConverter.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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); - }