Page MenuHomePhabricator

Script errors display "chunk" instead of the function name specified in #invoke
Open, MediumPublic

Description

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

Details

Reference
bz64746

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:25 AM
bzimport added a project: Scribunto.
bzimport set Reference to bz64746.
bzimport added a subscriber: Unknown Object (MLST).