Skip to content
Snippets Groups Projects
Commit 50a29658 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Error messages less cryptic while superloading and the original load fails.

parent 23b15dfa
No related branches found
No related tags found
1 merge request!150Quality fixes
......@@ -139,7 +139,12 @@ local te4_loader = function(name)
local bname = name
-- Base loader
local prev = loadfile("/"..bname:gsub("%.", "/")..".lua")
local bfile = "/"..bname:gsub("%.", "/")..".lua"
local prev, err = loadfile(bfile)
if not prev and err then
error("Error while loading base '"..bfile.."':\n"..tostring(err))
return nil
end
name = name:gsub("%.", "/")
for i = 1, #__addons_superload_order do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment