remove non-functional error handler
This commit is contained in:
@@ -53,13 +53,7 @@ luaUserData.AddCallMetaTable = function (userdata)
|
|||||||
error("userdata was nil.", 2)
|
error("userdata was nil.", 2)
|
||||||
end
|
end
|
||||||
|
|
||||||
local success, result = pcall(userdata.__new, ...)
|
return userdata.__new(...)
|
||||||
|
|
||||||
if not success then
|
|
||||||
error(result, 2)
|
|
||||||
end
|
|
||||||
|
|
||||||
return result
|
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user