aboutsummaryrefslogtreecommitdiff
path: root/builtin/common
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/common')
-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