Fix some broken documentation in gears.debug
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
a2301ae8f3
commit
2ad49dfd0c
|
@ -62,13 +62,13 @@ function debug.dump(data, tag, depth)
|
||||||
print(debug.dump_return(data, tag, depth))
|
print(debug.dump_return(data, tag, depth))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Print an warning message
|
--- Print an warning message
|
||||||
-- @tparam string message The warning message to print
|
-- @tparam string message The warning message to print
|
||||||
function debug.print_warning(message)
|
function debug.print_warning(message)
|
||||||
io.stderr:write(os.date("%Y-%m-%d %T W: ") .. tostring(message) .. "\n")
|
io.stderr:write(os.date("%Y-%m-%d %T W: ") .. tostring(message) .. "\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Print an error message
|
--- Print an error message
|
||||||
-- @tparam string message The error message to print
|
-- @tparam string message The error message to print
|
||||||
function debug.print_error(message)
|
function debug.print_error(message)
|
||||||
io.stderr:write(os.date("%Y-%m-%d %T E: ") .. tostring(message) .. "\n")
|
io.stderr:write(os.date("%Y-%m-%d %T E: ") .. tostring(message) .. "\n")
|
||||||
|
|
Loading…
Reference in New Issue