[Catalyst] Suggested minor fixes for Catalyst error output

Matt S Trout dbix-class at trout.me.uk
Wed Apr 12 17:13:15 CEST 2006

Nigel Metheringham wrote:
> Here's a patch making 2 changes to the HTML output from Catalyst when
> there is an error:-
>      1. Remove the rounded corners on the error page
>      2. Change the Data::Dumper parameters to be less space intensive
> The reasoning behind this is that the -moz-border-radius CSS setting to
> give the rounded corners looks great when there is a small amount of
> output, however if you have dumped variables in the output it can get
> rather large, which then tickles a Mozilla/Gecko rendering bug which
> plasters the background on top of the error text output.
> This is detailed in
>   https://bugzilla.mozilla.org/show_bug.cgi?id=252241
> The workround is to simply live with square (although less cool)
> corners, by removing the property from the style sheets.  Other browsers
> won't honour this anyhow, so it makes things consistent.

I'm definitely in favour of this.

> The other fix is to set Indent mode on Data::Dumper to 1, which heads
> off to the right hand margin less quickly than the default.  Anyone
> using a DBIx::Class based model with elements in stash will know that a
> dumped object rapidly exhausts the width of the browser window :-(

There'll be a solution to that eventually. I'm just not 100% sure what it's 
going to be yet :)

      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

More information about the Catalyst mailing list