mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-08 20:22:38 +01:00
aefaef
This commit is contained in:
parent
c593b7b74d
commit
9bfcfcc8ae
@ -189,7 +189,7 @@ function require(module)
|
||||
if package.loaded[module] then
|
||||
return package.loaded[module]
|
||||
elseif package.loading[module] then
|
||||
error("already loading " .. module)
|
||||
error("already loading " .. module .. ": " .. debug.traceback())
|
||||
else
|
||||
package.loading[module] = true
|
||||
package.loaded[module] = dofile(installerPath .. "Libraries/" .. module .. ".lua")
|
||||
|
||||
2
OS.lua
2
OS.lua
@ -51,7 +51,7 @@ function require(module)
|
||||
if package.loaded[lowerModule] then
|
||||
return package.loaded[lowerModule]
|
||||
elseif package.loading[lowerModule] then
|
||||
error("recursive require() call found: library \"" .. module .. "\" is trying to require another library that requires it")
|
||||
error("recursive require() call found: library \"" .. module .. "\" is trying to require another library that requires it\n" .. debug.traceback())
|
||||
else
|
||||
local errors = {}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user