Thanks for the reply.
For now, I am handling this by adding [#attempt][#recover]freemarker
directives at the beginning and end of all my templates. I would love to try
to write a patch for this. Seems pretty easy. All that is needed is to read
the TemplateExceptionHandler  configuration from server/rendering/freemarker
node.This code would be added in FreemarkerHelper.
But I will need to set up magnolia for development on my machine and it will
be the first time, so no guarantees.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Grégory Joseph
Sent: Wednesday, June 10, 2009 11:47 AM
To: Magnolia User-List
Subject: Re: [magnolia-user] Hide the freemarker TemplateException stack
trace on the page output




On Jun 10, 2009, at 5:06 PM, Garima Parakh wrote:

>
>
> In Magnolia 4.0, is there a configuration to hide the Freemarker 
> TemplateException on the public instance. I see in FreemarkerHelper
> class ,
> the TemplateExceptionHandler is set to HTML_DEBUG_HANDLER and there  
> seems to
> be no configuration setting to change this. Is there any other way I  
> can hide
> this exception on the public instance. The yellow page with the long  
> stack
> trace is really ugly.

Fix your templates ;)

More seriously, this is something we'd like to do:
   http://jira.magnolia-cms.com/browse/MAGNOLIA-1469

Not sure that it will make it to 4.1.1 however. Except if you'd be  
willing to provide patches, that always helps ;)

-g


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to