Default for warnings changed to "off"
Warnings are mostly a tool to help developers (e.g., by showing hidden error messages); regular users usually don't need to see them.
This commit is contained in:
@@ -369,7 +369,7 @@ if T then
|
||||
s[n] = i
|
||||
end
|
||||
|
||||
warn("@store")
|
||||
warn("@on"); warn("@store")
|
||||
collectgarbage()
|
||||
assert(string.find(_WARN, "error in __gc metamethod"))
|
||||
assert(string.match(_WARN, "@(.-)@") == "expected"); _WARN = nil
|
||||
|
||||
Reference in New Issue
Block a user