mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
refactor(require): use error from Lua_require on failed load
This commit is contained in:
@@ -55,7 +55,7 @@ function lib.require(modname)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return error(("module '%s' not found"):format(modname), 2)
|
return error(result, 2)
|
||||||
end
|
end
|
||||||
|
|
||||||
return module
|
return module
|
||||||
|
|||||||
Reference in New Issue
Block a user