fix: rm error when config.config.editor is not present

This commit is contained in:
Matt Leong 2022-02-17 16:14:25 -08:00
parent bfaee95d02
commit a10143d8d2

View file

@ -9,7 +9,7 @@ local cosmic_modules = {
for _, mod in ipairs(cosmic_modules) do for _, mod in ipairs(cosmic_modules) do
local ok, err = pcall(require, mod) local ok, err = pcall(require, mod)
if not ok and not mod:find('cosmic.core.user') then if not ok and not mod:find('cosmic.config') then
error(('Error loading %s...\n\n%s'):format(mod, err)) error(('Error loading %s...\n\n%s'):format(mod, err))
end end
end end