Skip to content

Commit

Permalink
tweak(es_extended/client/SecureEvent): better stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
Mycroft-Studios committed Nov 13, 2024
1 parent 3da500a commit 6e5211d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions [core]/es_extended/client/modules/utils/SecureEvent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ function ESX.SecureNetEvent(name, func)

local success, result = pcall(func, ...)
if not success then
result = result or ("Unknown error occurred in event ^5%s^1"):format(name)
error(result)
error(("Event ^5%s^1: %s"):format(name, result))
end
end)

Expand Down

0 comments on commit 6e5211d

Please sign in to comment.