From 5a0e4667fa710b42f291eba3df08127bb26d8576 Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 1 May 2019 20:09:55 +0200 Subject: [PATCH] More readable error message. --- engine/compiler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/compiler.c b/engine/compiler.c index 5062090..0f53ab5 100644 --- a/engine/compiler.c +++ b/engine/compiler.c @@ -3180,8 +3180,8 @@ static sxi32 PH7_GenStateCompileClassMethod( } if((pClass->iFlags & PH7_CLASS_VIRTUAL) == 0) { PH7_GenCompileError(pGen, E_ERROR, nLine, - "Class '%z' contains virtual method and must therefore be declared virtual or implement the remaining method '%z::%z()'", - &pClass->sName, &pClass->sName, pName); + "A method '%z::%z()' cannot be declared as virtual in non-virtual class", + &pClass->sName, pName); } /* Assemble method signature only */ doBody = FALSE;