1
0
Fork 0
mirror of https://github.com/CompeyDev/my-nvim-setup.git synced 2025-04-10 09:40:54 +01:00

better error message

This commit is contained in:
siduck76 2021-07-21 23:00:19 +05:30 committed by GitHub
parent 5531edf8e4
commit b54c4ca5de
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

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