From 8847d645c04029d2fe9f51bde25c55f66d34b7fc Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 29 May 2019 20:01:32 +0200 Subject: [PATCH] More corrections to error messages. --- engine/vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/vm.c b/engine/vm.c index 4257924..17cf8bd 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -4355,7 +4355,7 @@ static sxi32 VmByteCodeExec( } if(pAttr == 0) { /* No such attribute,load null */ - PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Undefined class attribute '%z::%z'", + PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Undefined class attribute '%z::$%z'", &pClass->sName, &sName); } /* Pop the attribute name from the stack */ @@ -4367,7 +4367,7 @@ static sxi32 VmByteCodeExec( if(pAttr) { if((pAttr->iFlags & (PH7_CLASS_ATTR_STATIC | PH7_CLASS_ATTR_CONSTANT)) == 0) { /* Access to a non static attribute */ - PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Access to a non-static class attribute '%z::%z'", + PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Access to a non-static class attribute '%z::$%z'", &pClass->sName, &pAttr->sName ); } else {