Mailing List Archive

Very small patch, fixes scruffy display of DBIC errors
Hi,

The diff below adds a chomp of the quoted error message shown on the
Catalyst fail page. This fixes a scruffy-looking trailing quote mark
currently seen when DBIC errors come through with a newline on the end.

I know it's not the hugest of things, but it's been bugging me for
years. :)

Regards,
Denny


--- lib/Catalyst/View/TT.pm.original 2014-03-01 13:00:21.664051889 +0000
+++ lib/Catalyst/View/TT.pm 2014-03-01 12:58:05.012057030 +0000
@@ -241,6 +241,7 @@

sub _rendering_error {
my ($self, $c, $err) = @_;
+ chomp($err);
my $error = qq/Couldn't render template "$err"/;
$c->log->error($error);
$c->error($error);



_______________________________________________
Catalyst-dev mailing list
Catalyst-dev@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev