if not luci.util.copcall(luci.template.render, "error404") then
luci.http.prepare_content("text/plain")
luci.http.write(message)
- luci.util.perror(message)
end
return false
end
-- @param message Custom error message (optional)#
-- @return false
function error500(message)
+ luci.util.perror(message)
if not context.template_header_sent then
luci.http.status(500, "Internal Server Error")
else