Hi, I've noticed that there isn't an easy way to turn off detailed error reporting with wsapi/orbit. If an error occurs the client receives a complete stack trace of the executing script. While essential for development and testing, I think it is less desirable in a production environment.
Perhaps this option should be supported through some kind of configuration for wsapi/orbit. The patch below (on wsapi.fcgi) will do it (controlled by the SUPPRESS_ERRORS variable) Cheers, Shmul local common = require "wsapi.common" local fastcgi = require "wsapi.fastcgi" +-- we surpress the wsapi overly descriptive errors here +SURPRESS_ERRORS = true +if SUPPRESS_ERRORS then common.error_html = function(msg) return "" end end + local function wsapi_loader(wsapi_env) local path, file, modname, ext, mtime = common.find_module(wsapi_env, nil, "wsapi.fcgi") local app = common.load_wsapi_isolated(path, file, modname, ext, mtime) + if SUPPRESS_ERRORS then app.server_error = function(web,msg) return "" end end wsapi_env.APP_PATH = path return app(wsapi_env) end _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/