From 0b069fcb861121fe6ae627a99b780173985e36d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Tue, 15 Jul 2014 16:54:30 +0200 Subject: [PATCH] Clarify error message for external functions misuse in model block. Thanks to Johannes Pfeifer. (cherry picked from commit cebed5435f2d3fac8935fa72af4f8d3bd37019f0) --- preprocessor/ParsingDriver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocessor/ParsingDriver.cc b/preprocessor/ParsingDriver.cc index 748a412c15..e3739b601c 100644 --- a/preprocessor/ParsingDriver.cc +++ b/preprocessor/ParsingDriver.cc @@ -315,7 +315,7 @@ ParsingDriver::add_model_variable(int symb_id, int lag) error("Variable " + mod_file->symbol_table.getName(symb_id) + " not allowed inside model declaration. Its scope is only outside model."); if (type == eExternalFunction) - error("Symbol " + mod_file->symbol_table.getName(symb_id) + " is a function name external to Dynare. It cannot be used inside model."); + error("Symbol " + mod_file->symbol_table.getName(symb_id) + " is a function name external to Dynare. It cannot be used like a variable without input argument inside model."); if (type == eModelLocalVariable && lag != 0) error("Model local variable " + mod_file->symbol_table.getName(symb_id) + " cannot be given a lead or a lag."); -- GitLab