mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add advanced lua errors handler & fix hud script source path in traceback
This commit is contained in:
parent
2412699b89
commit
66be215101
5 changed files with 35 additions and 7 deletions
|
|
@ -307,3 +307,10 @@ function __scripts_cleanup()
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
function __vc__error(msg, frame)
|
||||
if events then
|
||||
events.emit("core:error", msg, debug.get_traceback(1))
|
||||
end
|
||||
return debug.traceback(msg, frame)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue