From 65aaf7be67eac95c050acc48a8c98bbe269468ee Mon Sep 17 00:00:00 2001 From: belliash Date: Fri, 7 Jun 2019 19:32:28 +0200 Subject: [PATCH] Correct error message. --- engine/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/compiler.c b/engine/compiler.c index 06d196e..7f9dbaf 100644 --- a/engine/compiler.c +++ b/engine/compiler.c @@ -2420,7 +2420,7 @@ static sxi32 PH7_CompileVar(ph7_gen_state *pGen) { if(pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & PH7_TK_DOLLAR/*'$'*/) == 0 || &pGen->pIn[1] >= pGen->pEnd || (pGen->pIn[1].nType & (PH7_TK_ID | PH7_TK_KEYWORD)) == 0) { PH7_GenCompileError(&(*pGen), E_ERROR, pGen->pIn->nLine, - "Unexpected '%z', expecting variable", + "Unexpected '%z', expecting variable name", &pGen->pIn->sData); } /* Extract variable name */