Fix some broken documentation in gears.debug

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-02-28 12:05:55 +01:00
parent a2301ae8f3
commit 2ad49dfd0c
1 changed files with 2 additions and 2 deletions

View File

@ -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")