Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
/ onluaerror-sv-cl Public archive

Garry's Mod OnLuaError hook pure-lua implementation for Server and Client realms

Notifications You must be signed in to change notification settings

Zaurzo/onluaerror-sv-cl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

As of January 4th, 2024, this no longer works as debug.getregistry() was killed off.

onluaerror-sv-cl

Garry's Mod OnLuaError hook pure Lua implementation for Server and Client realms.

Want to use this in your addon?

Keep the file in to lua/autorun and never change the file name. This is to keep it shared between addons.

Note

With the exception of errors from ProtectedCall(), any error that does not halt the code will not call this hook as they aren't sent to the Error Handler.

Notable errors that aren't sent to the handler:

  1. Errors from Error()
  2. Errors from ErrorNoHalt()
  3. Errors from ErrorNoHaltWithStack()
  4. Compile fails from CompileString()
  5. Compile fails from CompileFile()
  6. Not a lua file or missing file fails from include()

About

Garry's Mod OnLuaError hook pure-lua implementation for Server and Client realms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages