# HG changeset patch # User jbe # Date 1427214448 -3600 # Node ID 51b17cee84322ae2b294a1a174a31b086bf97293 # Parent 264af28677206601323818367a464b5f7acf42bb Updated error message for accidentally setting globals diff -r 264af2867720 -r 51b17cee8432 framework/bin/mcp.lua --- a/framework/bin/mcp.lua Tue Mar 24 16:24:42 2015 +0100 +++ b/framework/bin/mcp.lua Tue Mar 24 17:27:28 2015 +0100 @@ -27,7 +27,7 @@ _G[key] = value else if type(key) == "string" and string.match(key, "^[A-Za-z_][A-Za-z_0-9]*$") then - error('Attempt to set global variable "' .. key .. '" (Hint: missing local statement? Use _G.' .. key .. '= to really set global variable)', 2) + error('Attempt to set global variable "' .. key .. '" (Hint: missing local statement? Use _G.' .. key .. '= to really set global variable.)', 2) else error('Attempt to set global variable', 2) end