[Catalyst] Suggested minor fixes for Catalyst error output

Nigel Metheringham Nigel.Metheringham at dev.intechnology.co.uk
Wed Apr 12 16:52:00 CEST 2006


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.

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 :-(

Cheers
	Nigel.



-- 
[ Nigel Metheringham           Nigel.Metheringham at InTechnology.co.uk ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: catalyst-dumping.patch
Type: text/x-patch
Size: 1237 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060412/b8194334/attachment.bin 


More information about the Catalyst mailing list