Fixed formatting of info function
This commit is contained in:
parent
529f7f2f54
commit
136c498369
|
@ -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 (...)
|
||||
|
|
Loading…
Reference in New Issue
Block a user