better error message

This commit is contained in:
siduck76 2021-07-21 23:00:19 +05:30 committed by GitHub
parent 5531edf8e4
commit b54c4ca5de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ async =
for i = 1, #chad_modules, 1 do for i = 1, #chad_modules, 1 do
local ok, res = xpcall(require, debug.traceback, chad_modules[i]) local ok, res = xpcall(require, debug.traceback, chad_modules[i])
if not (ok) then 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 print(res) -- print stack traceback of the error
end end
end end