Verbose Fully Working

This commit is contained in:
Cooldude2606
2018-05-20 20:14:10 +01:00
parent 28c6610a20
commit 42a7c5d7e1

View File

@@ -37,9 +37,10 @@ require = function(path)
if string.sub(path,1) ~= '/' then path = '/'..path end
local _return = {pcall(_require,path)}
if not table.remove(_return, 1) then
local __return = {pcall(_require,'/..'..path)}
local __return = {pcall(_require,'/Addons'..path)}
if not table.remove(__return, 1) then
verbose('Failed to load: '.._path..' ('.._return[1]..')')
verbose('Also Attemped: /Addons'..path..' ('..__return[1]..')')
if require_return_err then error(unpack(_return)) end
else verbose('Loaded: '.._path) return unpack(__return) end
else verbose('Loaded: '.._path) end