summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-03-07 13:21:27 +0000
committerSteven Barth <steven@midlink.org>2009-03-07 13:21:27 +0000
commit1ed9be270bfcded11c0c6f47de4d005d4e788746 (patch)
tree2b84a0f4df4004814cad8707b8285cbce67e7a54 /libs
parentad57125f4132bef88ff0d2b4e34281ff812dc08b (diff)
Fix debugging output
Diffstat (limited to 'libs')
-rw-r--r--libs/web/luasrc/dispatcher.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index 60d468e86..a62092578 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -66,7 +66,6 @@ function error404(message)
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
@@ -75,6 +74,7 @@ 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