Author Topic: Lua Errors In logs  (Read 2037 times)

0 Members and 1 Guest are viewing this topic.

Offline ahref

  • Jr. Member
  • **
  • Posts: 62
  • Karma: 4
Lua Errors In logs
« on: April 22, 2009, 02:39:43 PM »
Would it be possible to record lua errors to the ulx logs?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8083
  • Karma: 389
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Lua Errors In logs
« Reply #1 on: April 22, 2009, 04:15:22 PM »
Not sure about that, even if you mean for just ULib itself.
My belief, which very well could be wrong, is that when an error occurs, that section of Lua stops being executed.
I think there would need to be an extra Lua "wrapper" of some sort to anticipate any error much like the engine already reports them.

I can't find any Gmod wiki documentation, nor could I download the release when I attempted to, but you may try checking out MrPresident's release ALog to see if the ServerLog command can log Lua errors in any way.,3890.0.html

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming