mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-17 17:48:36 +00:00
refactor(resource): export load error
This commit is contained in:
1 parent
a8fc5caaae
commit
97c18f0c6b
1 file changed
+5
-1
+5
-1
@@ -13,5 +13,9 @@ cache = {
|
||||
}
|
||||
|
||||
if not LoadResourceFile(lib.name, 'web/build/index.html') then
|
||||
error('Unable to load UI. Build ox_lib or download the latest release.\n ^3https://github.com/overextended/ox_lib/releases/latest/download/ox_lib.zip^0')
|
||||
local err = '^1Unable to load UI. Build ox_lib or download the latest release.\n ^3https://github.com/overextended/ox_lib/releases/latest/download/ox_lib.zip^0'
|
||||
function lib.hasLoaded() return err end
|
||||
error(err)
|
||||
end
|
||||
|
||||
function lib.hasLoaded() return true end
|
||||
Reference in new issue
Block a user