Create the following as Module:Foo:
local p = {}
function p.bar(frame)
error('This is an error')
end
return p
Add {{#invoke:foo|bar}} to a page. The script error generated will include:
Module:Foo:3: in function "chunk"
However, it's actually in function "bar" here.
Version: unspecified
Severity: normal