1
0

Fixed formatting of info function

This commit is contained in:
Jon Michael Aanes 2017-09-16 21:29:46 +02:00
parent 529f7f2f54
commit 136c498369

View File

@ -162,7 +162,8 @@ return function (module_name)
function err_hdl.info (...)
local args = {...}
if args[1] == err_hdl then table.remove(args, 1) end
return io.write(string.format(unpack(args)))
assert(type(args[1]) == 'string')
return io.write(('[%s]: '..args[1]..'\n'):format(err_hdl.module_name, unpack(args, 2)))
end
function err_hdl.register (...)