From 6e75fc31ca26b78a3e6d36465e7cf8a278b1b94f 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 --- ParsingDriver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ParsingDriver.cc b/ParsingDriver.cc index 80e01abd..db60330e 100644 --- a/ParsingDriver.cc +++ b/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();