# HG changeset patch # User jbe # Date 1427200254 -3600 # Node ID 22275c74023a13448d43c983e257712d74af8e17 # Parent 3db9b672ee73549e9234ee3961de099f74e1d175 Modified error message when setting global variable diff -r 3db9b672ee73 -r 22275c74023a framework/bin/mcp.lua --- a/framework/bin/mcp.lua Tue Mar 24 12:32:31 2015 +0100 +++ b/framework/bin/mcp.lua Tue Mar 24 13:30:54 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: use _G.' .. key .. '= to override protection mechanism)', 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