This commit is contained in:
Igor Timofeev 2019-01-19 16:30:43 +03:00
parent c593b7b74d
commit 9bfcfcc8ae
2 changed files with 2 additions and 2 deletions

View File

@ -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
View File

@ -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 = {}