From 2f3f3fd5e0cb19ea2df5712198dc40f093bd1255 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Tue, 15 Dec 2015 18:13:09 -0800 Subject: [PATCH] Update global protection error message to fix a typo. --- src/scripting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting.c b/src/scripting.c index bec488b3..7c586eaf 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -865,7 +865,7 @@ void scriptingEnableGlobalsProtection(lua_State *lua) { s[j++]="end\n"; s[j++]="mt.__index = function (t, n)\n"; s[j++]=" if dbg.getinfo(2) and dbg.getinfo(2, \"S\").what ~= \"C\" then\n"; - s[j++]=" error(\"Script attempted to access unexisting global variable '\"..tostring(n)..\"'\", 2)\n"; + s[j++]=" error(\"Script attempted to access nonexistent global variable '\"..tostring(n)..\"'\", 2)\n"; s[j++]=" end\n"; s[j++]=" return rawget(t, n)\n"; s[j++]="end\n";