From 3bf952b7731b8257d6ca50f9cb4bbd5be61539a4 Mon Sep 17 00:00:00 2001 From: Florian OMNES Date: Tue, 19 Sep 2023 18:55:07 +0200 Subject: [PATCH] Add warning logs for non-existent output variable --- src/libs/antares/study/parameters.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libs/antares/study/parameters.cpp b/src/libs/antares/study/parameters.cpp index 60a3028d1c..6126e94e7e 100644 --- a/src/libs/antares/study/parameters.cpp +++ b/src/libs/antares/study/parameters.cpp @@ -840,10 +840,11 @@ static bool SGDIntLoadFamily_Playlist(Parameters& d, } return false; } + static bool SGDIntLoadFamily_VariablesSelection(Parameters& d, const String& key, const String& value, - const String&) + const String& original) { if (key == "selected_vars_reset") { @@ -855,7 +856,10 @@ static bool SGDIntLoadFamily_VariablesSelection(Parameters& d, { // Check if the read output variable exists if (not d.variablesPrintInfo.exists(value.to())) + { + logs.warning() << "Output variable `" << original << "` does not exist"; return false; + } bool is_var_printed = (key == "select_var +"); d.variablesPrintInfo.setPrintStatus(value.to(), is_var_printed);