diff options
author | Squibid <me@zacharyscheiman.com> | 2024-07-25 10:36:27 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-07-25 10:36:27 -0400 |
commit | d7a08ca8205817589e90050ec20ea06591035526 (patch) | |
tree | f42af05163248ee5233d20b3df649d0587f43ed3 /lua | |
parent | d141c762c19d7e216b8e9953874f957b6b70775e (diff) | |
download | dep-d7a08ca8205817589e90050ec20ea06591035526.tar.gz dep-d7a08ca8205817589e90050ec20ea06591035526.tar.bz2 dep-d7a08ca8205817589e90050ec20ea06591035526.zip |
actually fix it this time
Diffstat (limited to '')
-rw-r--r-- | lua/dep.lua | 6 |
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) |