From e866575cb5e5fc002595fc5c370663846fd156bb Mon Sep 17 00:00:00 2001 From: belliash Date: Sun, 12 Aug 2018 10:18:42 +0200 Subject: [PATCH] More verbose errors --- engine/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/compiler.c b/engine/compiler.c index 549c9ed..7f2e802 100644 --- a/engine/compiler.c +++ b/engine/compiler.c @@ -3542,7 +3542,7 @@ loop: pGen->pIn++; /* Jump the dollar sign */ if(pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & (PH7_TK_KEYWORD | PH7_TK_ID)) == 0) { /* Invalid attribute name */ - rc = PH7_GenCompileError(pGen, E_ERROR, nLine, "Invalid attribute name"); + rc = PH7_GenCompileError(pGen, E_ERROR, nLine, "Invalid attribute name '%z' in class '%z'", &pGen->pIn->sData, &pClass->sName); if(rc == SXERR_ABORT) { /* Error count limit reached,abort immediately */ return SXERR_ABORT;