From d7a08ca8205817589e90050ec20ea06591035526 Mon Sep 17 00:00:00 2001 From: Squibid Date: Thu, 25 Jul 2024 10:36:27 -0400 Subject: actually fix it this time --- lua/dep.lua | 6 ++++-- 1 file 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) -- cgit v1.2.1