We are using RenderTemplate in a loop to render widgets. The issue is that if an exception occurs while rendering a widget, the exception details are rendered in the page.
Just wondering whether there is any way to handle this best as what we're doing now is throwing a custom exception if the RenderTemplate Html starts with "<!-- Error rendering template" or "<!-- Could not render template".
UmbracoHelper.RenderTemplate - Error handling
We are using RenderTemplate in a loop to render widgets. The issue is that if an exception occurs while rendering a widget, the exception details are rendered in the page.
Just wondering whether there is any way to handle this best as what we're doing now is throwing a custom exception if the RenderTemplate Html starts with "<!-- Error rendering template" or "<!-- Could not render template".
For anybody else who comes across this, you should be able to get errors to be thrown by opening up your umbracoSettings.config and setting this:
is working on a reply...