From feba01eb49ea5c51531e7eb10a54259e1e64ac1b Mon Sep 17 00:00:00 2001 From: belliash Date: Thu, 30 May 2019 20:00:41 +0200 Subject: [PATCH] More fixes to error messages. --- engine/vm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/vm.c b/engine/vm.c index cac51d1..0bb1574 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -4227,7 +4227,7 @@ static sxi32 VmByteCodeExec( } if(pObjAttr == 0) { /* No such attribute,load null */ - PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Undefined class attribute '%z->%z',PH7 is loading NULL", + PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Undefined class attribute '%z->%z'", &pClass->sName, &sName); } VmPopOperand(&pTos, 1); @@ -4317,11 +4317,11 @@ static sxi32 VmByteCodeExec( } if(pMeth == 0 || (pMeth->iFlags & PH7_CLASS_ATTR_VIRTUAL)) { if(pMeth) { - PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Cannot call virtual method '%z::%z'", + PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Cannot call virtual method '%z::%z()'", &pClass->sName, &sName ); } else { - PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Undefined class static method '%z::%z'", + PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Undefined class static method '%z::%z()'", &pClass->sName, &sName ); }