mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #01315
[Bug 525449] Re: Bad reporting of errors inside event handlers
Some help: http://forums.mudlet.org/viewtopic.php?f=8&t=1352
--
Bad reporting of errors inside event handlers
https://bugs.launchpad.net/bugs/525449
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
Status in Mudlet the MUD client: Confirmed
Bug description:
When you get an error that happens inside a function that is called by an event handler, Mudlet will:
a) Not report it to the debug console at all, instead reporting it to stdout
b) Not report the exact location of the error, but just use the event handler name
ie for
function abc()
a = a + 1
end
That is attached to "some event" event, Mudlet will print the following to stdout and not to debug:
LUA: ERROR running script "abc" ERROR: Lua error:some event
The proper error is also:
attempt to perform arithmetic on global 'a' (a nil value) but not the event handler name like it does.
References