mirror of
https://github.com/kepler155c/opus
synced 2025-12-17 21:58:06 +00:00
error handling
This commit is contained in:
@@ -13,6 +13,11 @@ Event.addRoutine(function()
|
||||
if api then
|
||||
local proxy = _G[api]
|
||||
|
||||
if not proxy then
|
||||
print('proxy: invalid API')
|
||||
return
|
||||
end
|
||||
|
||||
local methods = { }
|
||||
for k,v in pairs(proxy) do
|
||||
if type(v) == 'function' then
|
||||
|
||||
Reference in New Issue
Block a user