From d859f59a102df66715a736b16f16eb4b17166fba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Tue, 31 May 2022 16:13:27 +0200 Subject: [PATCH] Epilogue: improve error message --- src/ModelEquationBlock.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModelEquationBlock.cc b/src/ModelEquationBlock.cc index ad5a52b2..00156b51 100644 --- a/src/ModelEquationBlock.cc +++ b/src/ModelEquationBlock.cc @@ -331,7 +331,7 @@ Epilogue::checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &war for (const auto &it : dynamic_def_table) if (find(so_far_defined.begin(), so_far_defined.end(), it.first) != so_far_defined.end()) { - cerr << "WARNING: in the 'epilogue' block, variable '" << it.first + cerr << "WARNING: in the 'epilogue' block, variable '" << symbol_table.getName(it.first) << "' is declared twice" << endl; exit(EXIT_FAILURE); } -- GitLab