From b56f1175a2d3661459143e7c4104c43bf5a9caa5 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 4 Feb 2015 10:18:16 +0000 Subject: Change assignment to global in a function to warning --- builtin/common/strict.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/common') diff --git a/builtin/common/strict.lua b/builtin/common/strict.lua index 91d1f5b19..c353bb913 100644 --- a/builtin/common/strict.lua +++ b/builtin/common/strict.lua @@ -22,7 +22,7 @@ function meta:__newindex(name, value) info.currentline, name) if not warned[warn_key] and info.what ~= "main" and info.what ~= "C" then - minetest.log("error", ("Assignment to undeclared ".. + warn(("Assignment to undeclared ".. "global %q inside a function at %s.") :format(name, desc)) warned[warn_key] = true -- cgit v1.2.3