More fixes to error messages.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-05-30 20:00:41 +02:00
parent b1b78433dd
commit feba01eb49
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 3 deletions

View File

@ -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
);
}