mirror of https://github.com/bjornbytes/lovr.git
Fix warning message when requiring module fails;
This commit is contained in:
parent
da763c8786
commit
d29e6c2ec3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue