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

kanashiro-guest pushed a commit to branch master
in repository carton.

commit 68f4fa7e3d51d0a590b58b5cf2fa52405ee9cf92
Author: Tatsuhiko Miyagawa <miyag...@bulknews.net>
Date:   Wed Jun 5 18:02:41 2013 +0900

    wrap errors with eval
---
 xt/CLI.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xt/CLI.pm b/xt/CLI.pm
index 502ea2e..8186cf0 100644
--- a/xt/CLI.pm
+++ b/xt/CLI.pm
@@ -32,8 +32,8 @@ sub run {
     my $pushd = File::pushd::pushd $self->dir;
 
     my @capture = capture {
-        my $code = $self->SUPER::run(@args);
-        $self->exit_code($code);
+        my $code = eval { $self->SUPER::run(@args) };
+        $self->exit_code($@ ? 255 : $code);
     };
 
     $self->stdout($capture[0]);

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to