better error message
This commit is contained in:
parent
5531edf8e4
commit
b54c4ca5de
2
init.lua
2
init.lua
@ -15,7 +15,7 @@ async =
|
||||
for i = 1, #chad_modules, 1 do
|
||||
local ok, res = xpcall(require, debug.traceback, chad_modules[i])
|
||||
if not (ok) then
|
||||
print("NvChad [E0]: There was an error loading the module '" .. chad_modules[i] .. "' -->")
|
||||
print("Error loading module : " .. chad_modules[i])
|
||||
print(res) -- print stack traceback of the error
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user