]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - lib/Test/Valgrind.pm
Remove stack traces from common error messages
[perl/modules/Test-Valgrind.git] / lib / Test / Valgrind.pm
index 5c1c8bb1a4553b79203ffad0c526c76a77063347..1e563a813bbe61258afb2629c689e21e3639d00a 100644 (file)
@@ -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);
  }