diff --git a/errors.lua b/errors.lua index 386bc59..5340a15 100644 --- a/errors.lua +++ b/errors.lua @@ -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 (...)