Skip to content

Commit

Permalink
fix(cache): if we can't load from the cache modpath, find path again …
Browse files Browse the repository at this point in the history
…instead of erroring right away
  • Loading branch information
folke committed Dec 21, 2022
1 parent bbace14 commit a345649
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lazy/core/cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ function M.loader(modname)
end
end
chunk, err = M.load(modname, entry.modpath)
else
end
if not chunk then
-- find the modpath and load the module
local modpath = M.find(modname)
if modpath then
Expand Down

0 comments on commit a345649

Please sign in to comment.