 |
rck Novice
Joined: 26 Oct 2005 Posts: 32 Location: California
|
Posted: Mon Dec 17, 2007 10:27 pm
[2.18] Lua errors in triggers? |
Is there something speical I have to enable in lua scripted triggers to display errors? Doing something like calling a function that doesn't exist does not seem to raise a lua error, the script simply terminates silently, the debugger says nothing about it.
Lua errors are generated just fine for ones entered on the command line though. |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Dec 18, 2007 11:42 am |
I get errors raised fine from triggers - I created a trigger with the script invalid ( " = and an error was raised just fine. Similarly, attempts to call non-existant functions give the normal "attempt to call global xxx (a nil value)".
Perhaps you've defined the function somewhere? |
|
|
 |
rck Novice
Joined: 26 Oct 2005 Posts: 32 Location: California
|
Posted: Tue Dec 18, 2007 3:24 pm |
Fang Xianfu wrote: |
I get errors raised fine from triggers - I created a trigger with the script invalid ( " = and an error was raised just fine. Similarly, attempts to call non-existant functions give the normal "attempt to call global xxx (a nil value)".
Perhaps you've defined the function somewhere? |
Nope, I've had the script silently fail for parse errors and such too, I ended up adding zs.debug() calls at the end of my trigger code to make it easier to identify if it failed or not.
Hmm; that gives me an idea, I'm working on a converted zMud session, I'll start one from scratch and see if it still occurs. |
|
|
 |
|
|