fix(cache): if we can't load from the cache modpath, find path again instead of erroring right away

This commit is contained in:
Folke Lemaitre 2022-12-21 14:56:46 +01:00
parent bbace14dc9
commit a345649510
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 1 deletions

View File

@ -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