Throw error messages on stderr
authorSteven Barth <steven@midlink.org>
Fri, 31 Oct 2008 20:57:07 +0000 (20:57 +0000)
committerSteven Barth <steven@midlink.org>
Fri, 31 Oct 2008 20:57:07 +0000 (20:57 +0000)
libs/web/luasrc/dispatcher.lua

index 645ea97..fe5f656 100644 (file)
@@ -108,6 +108,7 @@ function httpdispatch(request)
 
        local stat, err = util.copcall(dispatch, context.request)
        if not stat then
 
        local stat, err = util.copcall(dispatch, context.request)
        if not stat then
+               luci.util.perror(err)
                error500(err)
        end
 
                error500(err)
        end