aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2015-02-04 10:18:16 +0000
committerShadowNinja <shadowninja@minetest.net>2015-02-04 14:57:06 -0500
commitb56f1175a2d3661459143e7c4104c43bf5a9caa5 (patch)
treeb517db6cc21de606f112500e1ec134e20104e90e
parent1b4aaa5f505518c1464ebcadda7549aa7c69675b (diff)
downloadminetest-b56f1175a2d3661459143e7c4104c43bf5a9caa5.tar.gz
minetest-b56f1175a2d3661459143e7c4104c43bf5a9caa5.tar.bz2
minetest-b56f1175a2d3661459143e7c4104c43bf5a9caa5.zip
Change assignment to global in a function to warning
-rw-r--r--builtin/common/strict.lua2
1 files changed, 1 insertions, 1 deletions
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