From: divverent Date: Wed, 27 Feb 2008 19:04:49 +0000 (+0000) Subject: Make the "no such builtin" message more descriptive X-Git-Tag: xonotic-v0.1.0preview~2371 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e4737a153074daf061d89670cb97ec7ee269b781;p=xonotic%2Fdarkplaces.git Make the "no such builtin" message more descriptive git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8152 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/mvm_cmds.c b/mvm_cmds.c index 7a5d41b8..36e0b417 100644 --- a/mvm_cmds.c +++ b/mvm_cmds.c @@ -170,7 +170,7 @@ void VM_M_callfunction(void) if (builtinnumber < prog->numbuiltins && prog->builtins[builtinnumber]) prog->builtins[builtinnumber](); else - PRVM_ERROR("No such builtin #%i in %s", builtinnumber, PRVM_NAME); + PRVM_ERROR("No such builtin #%i in %s; most likely cause: outdated engine build. Try updating!", builtinnumber, PRVM_NAME); } else if(func - prog->functions > 0) { diff --git a/prvm_execprogram.h b/prvm_execprogram.h index 6b7018c1..38a13859 100644 --- a/prvm_execprogram.h +++ b/prvm_execprogram.h @@ -306,7 +306,7 @@ if (builtinnumber < prog->numbuiltins && prog->builtins[builtinnumber]) prog->builtins[builtinnumber](); else - PRVM_ERROR("No such builtin #%i in %s", builtinnumber, PRVM_NAME); + PRVM_ERROR("No such builtin #%i in %s; most likely cause: outdated engine build. Try updating!", builtinnumber, PRVM_NAME); } else st = prog->statements + PRVM_EnterFunction(newf);