Templating "render" function and error wrapping in browser

18 views
Skip to first unread message

Phil Gates-Idem

unread,
Dec 8, 2013, 9:03:05 PM12/8/13
to rapt...@googlegroups.com
I would like to propose that the raptor/templating render function does not wrap any exceptions when being used in the browser. Because the error original error is caught the web browser does not provide quick link to source error location (it only provides link to where wrapper error is thrown). This has made debugging errors in web browser more frustrating than it needs to be.

I did a little test and added raptor/templating/templating_browser.js and override the render function found in raptor/templating/templating.js. The new render function is exactly the same as original except it does not have a try/catch block.

Is it ok if I commit this change?
Reply all
Reply to author
Forward
0 new messages