From a8888f4c70397f617788c55c763936fe66e7f69a Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Thu, 9 Apr 2015 16:17:47 +0200 Subject: [PATCH] preprocessor: fix error message for InitParamStatement clone/reindex method --- preprocessor/NumericalInitialization.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/preprocessor/NumericalInitialization.cc b/preprocessor/NumericalInitialization.cc index 08a172f8a..501f202b5 100644 --- a/preprocessor/NumericalInitialization.cc +++ b/preprocessor/NumericalInitialization.cc @@ -84,7 +84,8 @@ InitParamStatement::cloneAndReindexSymbIds(DataTree &dynamic_datatree, SymbolTab } catch (...) { - cerr << "ERROR: encountered in InitParamStatement::cloneAndReindexSymbIds. Should not arrive here" << endl; + cerr << "ERROR: A variable in the init_param statement was not found in the symbol table" << endl + << " This likely means that you have declared a varexo that is not used in the model" << endl; exit(EXIT_FAILURE); } }