[libcode-tidyall-perl] 48/374: redirect errorfile to scalar and die if present

Jonas Smedegaard js at alioth.debian.org
Sun Sep 29 22:25:47 UTC 2013


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libcode-tidyall-perl.

commit 18e61a21d9e0d118b4332389b5622b4db36f8fe0
Author: Jonathan Swartz <swartz at pobox.com>
Date:   Tue Jun 26 05:46:31 2012 -0700

    redirect errorfile to scalar and die if present
---
 lib/Code/TidyAll/Plugin/PerlTidy.pm |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/Code/TidyAll/Plugin/PerlTidy.pm b/lib/Code/TidyAll/Plugin/PerlTidy.pm
index 653cc28..6cb630a 100644
--- a/lib/Code/TidyAll/Plugin/PerlTidy.pm
+++ b/lib/Code/TidyAll/Plugin/PerlTidy.pm
@@ -16,12 +16,15 @@ sub process_source {
     #
     my %params = slice_exists( $self->options, qw(argv prefilter postfilter) );
 
+    my $errorfile;
     no strict 'refs';
     &$perl_tidy_function(
         %params,
         source      => \$source,
-        destination => \my $destination
+        destination => \my $destination,
+        errorfile   => \$errorfile
     );
+    die $errorfile if $errorfile;
     return $destination;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcode-tidyall-perl.git



More information about the Pkg-perl-cvs-commits mailing list