5
Vote

Feature request: Choose what should happen when function fails

description

As it is today when a function like Razor or Xslt fails, it either shows an [Error]-message on the page or a yellow box with the Stacktrace if you're logged into the console.
 
There should be an option to configure this more carefully, in particular im interested in a ThrowYSOD option, that would enable developers to redirect users to a friendly 500-page and log unhandled exceptions centrally.

comments

burningice wrote Aug 21, 2012 at 8:47 AM

eventually Composite should just honor the CustomErrors-attribute and only show the [Error] / yellow box with stacktrace when the setting of CustomErrors says so.

DBailey635 wrote Mar 14, 2013 at 10:35 AM

I'd like to see more user friendly error messages, possibly of our own creation, when a function fails and the user is not logged into the console. It might also be advantageous to fall-back to an alternative function when the main one fails.