[libcode-tidyall-perl] 358/374: improve error message

Jonas Smedegaard js at alioth.debian.org
Sun Sep 29 22:26:51 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 0d2815abb8df7b63cf7aa008c92697be236010ef
Author: Jonathan Swartz <swartz at pobox.com>
Date:   Mon Sep 2 13:37:54 2013 -0700

    improve error message
---
 lib/Code/TidyAll/Plugin/PodSpell.pm |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/Code/TidyAll/Plugin/PodSpell.pm b/lib/Code/TidyAll/Plugin/PodSpell.pm
index 9e6a72c..4618a4b 100644
--- a/lib/Code/TidyAll/Plugin/PodSpell.pm
+++ b/lib/Code/TidyAll/Plugin/PodSpell.pm
@@ -20,8 +20,9 @@ sub validate_file {
 
     my ($output);
     my @cmd = ( $self->ispell_cmd, shellwords( $self->ispell_argv ), "-a" );
-    run3( \@cmd, \$text, \$output, \$error );
-    die $error if $error;
+    eval { run3( \@cmd, \$text, \$output, \$error ) };
+    $error = $@ if $@;
+    die "error running '" . join( " ", @cmd ) . "': " . $error if $error;
 
     my ( @errors, %seen );
     foreach my $line ( split( "\n", $output ) ) {

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