6
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 7: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.

wrote Aug 22, 2012 at 1:49 AM

wrote Feb 22, 2013 at 12:21 AM

wrote Mar 14, 2013 at 9:32 AM

DBailey635 wrote Mar 14, 2013 at 9: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.

wrote Jun 26, 2013 at 5:48 PM

wrote Dec 8, 2014 at 1:02 PM

wrote Mar 9 at 9:09 AM

burningice wrote Mar 9 at 9:46 AM

With reference to this feature request https://compositec1.codeplex.com/workitem/2081, a global OnFunctionError event where you can hook up your own logic would be desirable, mimicking the way OnError works on HttpApplication.