From 5e547612018969e212a59c21249857534b6f39d2 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 30 Sep 2019 14:27:58 +0200 Subject: [PATCH] clarify error message in bfcfbac66d3dec21853a1b1bb575291d80d99b69. #29 --- src/ExprNode.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExprNode.cc b/src/ExprNode.cc index 58d4d888..7e0a814f 100644 --- a/src/ExprNode.cc +++ b/src/ExprNode.cc @@ -1212,7 +1212,7 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type, exit(EXIT_FAILURE); } case SymbolType::unusedEndogenous: - cerr << "ERROR: You cannot use an unused endogenous variable in an expression" << endl; + cerr << "ERROR: You cannot use an endogenous variable in an expression if that variable has not been used in the model block." << endl; exit(EXIT_FAILURE); case SymbolType::externalFunction: case SymbolType::trend: