From 24e58262fc5ceab04cb65b6dbeb53b39eb52cd64 Mon Sep 17 00:00:00 2001 From: Ferhat Mihoubi Date: Tue, 6 Mar 2012 11:33:02 +0100 Subject: [PATCH] Error message for external function provides more details --- preprocessor/ParsingDriver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocessor/ParsingDriver.cc b/preprocessor/ParsingDriver.cc index 80e01abd5..db60330e4 100644 --- a/preprocessor/ParsingDriver.cc +++ b/preprocessor/ParsingDriver.cc @@ -2264,7 +2264,7 @@ ParsingDriver::add_model_var_or_external_function(string *function_name, bool in else { //First time encountering this external function i.e., not previously declared or encountered if (in_model_block) - error("To use an external function within the model block, you must first declare it via the external_function() statement."); + error("To use an external function (" + *function_name + ") within the model block, you must first declare it via the external_function() statement."); declare_symbol(function_name, eExternalFunction, NULL); current_external_function_options.nargs = stack_external_function_args.top().size();