aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/dep.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/dep.lua b/lua/dep.lua
index 0e25819..c6deb9f 100644
--- a/lua/dep.lua
+++ b/lua/dep.lua
@@ -829,13 +829,15 @@ return setmetatable({
bench("load", function()
root = register("squibid/dep")
- register_recursive(config)
if config["load"] and type(config["load"]) == "function" then
- local ok, ret = pcall(config["load"]())
+ local ok, ret = pcall(config["load"])
if ok and type(ret) == "table" then
register_recursive(ret)
+ else
+ logger:log("error", ret)
end
end
+ register_recursive(config)
sort_dependencies()
ensure_acyclic()
end)