From 0bf2f6d94f7bea27e3f47a22139cb9ec0798e4ab Mon Sep 17 00:00:00 2001 From: belliash Date: Sat, 21 Dec 2019 16:22:16 +0100 Subject: [PATCH] Correct error message. --- engine/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/vm.c b/engine/vm.c index 0bf7dc2..4da19c7 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -5072,7 +5072,7 @@ PH7_PRIVATE sxi32 PH7_VmByteCodeExec(ph7_vm *pVm) { PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Cannot find a program entry point 'Program::main()'"); } if(pMethod->sFunc.nType != MEMOBJ_INT && pMethod->sFunc.nType != MEMOBJ_VOID) { - PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "The 'Program::main()' can only return an Integer or Void value"); + PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "The 'Program::main()' return value can be either Integer or Void"); } /* A set of arguments is stored in array of strings */ pArgs->nType |= MEMOBJ_STRING;