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 645ea972e622faefd09e478ceaff6dc4e3ab4392..fe5f656ba869266f60c2daee494526b9552f62cd 100644 (file)
@@ -108,6 +108,7 @@ function httpdispatch(request)
 
        local stat, err = util.copcall(dispatch, context.request)
        if not stat then
+               luci.util.perror(err)
                error500(err)
        end