On Wed, Feb 10, 2010 at 12:02 PM, Shmulik Regev <shmul...@gmail.com> wrote:
> 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. > > Hi Shmulik, If you using Orbit you can override the server_error function on your application object: ------ module("foo", orbit.new) function server_error(web, error) ... do whatever you want with the error message ... end ------ Any errors in your controllers will go to this special controller. Incidentally, you can do the same thing with 404 errors, the name of the special controller is not_found: ------ module("foo", orbit.new) function not_found(web) ... show your custom 404 page ... end ------ -- Fabio Mascarenhas
_______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/