[Catalyst-commits] r7155 - Catalyst-View-Email/0.10/lib/Catalyst/View

jshirley at dev.catalyst.perl.org jshirley at dev.catalyst.perl.org
Thu Nov 22 19:48:08 GMT 2007


Author: jshirley
Date: 2007-11-22 19:48:08 +0000 (Thu, 22 Nov 2007)
New Revision: 7155

Modified:
   Catalyst-View-Email/0.10/lib/Catalyst/View/Email.pm
Log:
Adding comment for confusing Return::Value usage

Modified: Catalyst-View-Email/0.10/lib/Catalyst/View/Email.pm
===================================================================
--- Catalyst-View-Email/0.10/lib/Catalyst/View/Email.pm	2007-11-22 18:55:27 UTC (rev 7154)
+++ Catalyst-View-Email/0.10/lib/Catalyst/View/Email.pm	2007-11-22 19:48:08 UTC (rev 7155)
@@ -113,7 +113,7 @@
         ],
     };
 
-=head1 HANDLING FAILURES
+=head1 HANDLING ERRORS
 
 If the email fails to send, the view will die (throw an exception).  After
 your forward to the view, it is a good idea to check for errors:
@@ -237,6 +237,8 @@
 
     if ( $message ) {
         my $return = $self->mailer->send($message);
+        # return is a Return::Value object, so this will stringify as the error
+        # in the case of a failure.  
         croak "$return" if !$return;
     } else {
         croak "Unable to create message";




More information about the Catalyst-commits mailing list