X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=blobdiff_plain;f=lib%2FTest%2FValgrind.pm;h=1e563a813bbe61258afb2629c689e21e3639d00a;hp=5c1c8bb1a4553b79203ffad0c526c76a77063347;hb=b53c95bc4c9013591c3051dd69d472518474d620;hpb=9da4ddc479c87b233cc7b2b182ca83c545f57065 diff --git a/lib/Test/Valgrind.pm b/lib/Test/Valgrind.pm index 5c1c8bb..1e563a8 100644 --- a/lib/Test/Valgrind.pm +++ b/lib/Test/Valgrind.pm @@ -168,7 +168,9 @@ sub analyse { ); }; unless ($sess) { - $action->abort($sess, $@); + my $err = $@; + $err =~ s/^(Empty valgrind candidates list|No appropriate valgrind executable could be found)\s+at.*/$1/; + $action->abort($sess, $err); return $action->status($sess); }