Fix warning message when requiring module fails;

This commit is contained in:
bjorn 2024-01-05 14:23:34 -08:00
parent da763c8786
commit d29e6c2ec3
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ function lovr.boot()
if conf.modules[module] then
local loaded, result = pcall(require, 'lovr.' .. module)
if not loaded then
lovr.log('warn', string.format('Could not load module %q: %s', module, result))
lovr.log(string.format('Could not load module %q: %s', module, result), 'warn')
else
lovr[module] = result
end