Fix debugging output
This commit is contained in:
parent
ad57125f41
commit
1ed9be270b
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,6 @@ function error404(message)
|
||||||
if not luci.util.copcall(luci.template.render, "error404") then
|
if not luci.util.copcall(luci.template.render, "error404") then
|
||||||
luci.http.prepare_content("text/plain")
|
luci.http.prepare_content("text/plain")
|
||||||
luci.http.write(message)
|
luci.http.write(message)
|
||||||
luci.util.perror(message)
|
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
@ -75,6 +74,7 @@ end
|
||||||
-- @param message Custom error message (optional)#
|
-- @param message Custom error message (optional)#
|
||||||
-- @return false
|
-- @return false
|
||||||
function error500(message)
|
function error500(message)
|
||||||
|
luci.util.perror(message)
|
||||||
if not context.template_header_sent then
|
if not context.template_header_sent then
|
||||||
luci.http.status(500, "Internal Server Error")
|
luci.http.status(500, "Internal Server Error")
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue