[Catalyst-dev] Very small patch, fixes scruffy display of DBIC errors

Denny 2014 at denny.me
Sat Mar 1 13:08:14 GMT 2014


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);





More information about the Catalyst-dev mailing list