You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Yohan Yudanara <yo...@gmail.com> on 2012/06/25 19:47:41 UTC

Disable X-Tapestry-ErrorMessage on response header

Hi..

Is there a way to disable X-Tapestry-ErrorMessage on response header?

I need to disable it on production mode because it gives too detail
explanation which is good for development..

Thanks..

Best regards,
Yohan Yudanara

Re: Disable X-Tapestry-ErrorMessage on response header

Posted by Yohan Yudanara <yo...@gmail.com>.
Hi..

I've found the solution..

1. create class ExceptionReport which implements ExceptionReporter
2. override method reportException(Throwable exception) and set the
response header to null:
response.setHeader("X-Tapestry-ErrorMessage", null);

Hope it helps someone who looking for the same thing..
Thanks..

#waitingforIgorbook :)

On Tue, Jun 26, 2012 at 12:47 AM, Yohan Yudanara
<yo...@gmail.com>wrote:

> Hi..
>
> Is there a way to disable X-Tapestry-ErrorMessage on response header?
>
> I need to disable it on production mode because it gives too detail
> explanation which is good for development..
>
> Thanks..
>
> Best regards,
> Yohan Yudanara
>
>
>