Module:Sandbox/Alexiscoutinho: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 33:
 
local warn = require('Module:Warning')
local function wrapper()
warn('Invalid index')
local function f()
warn('Invalid type')
warn('my warning', 4)
return type(C1) .. ' ' .. type(obj1) .. ' ' .. type(obj2)
error('my error', 4)
end
local _, msg = pcall(f)
return msg
end
 
local m = wrapper()
return m
end