From: Arnaud Giersch Date: Tue, 9 Jul 2013 09:24:53 +0000 (+0200) Subject: Slightly improve error message. X-Git-Tag: v3_9_90~184 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/385e026fd01f94263f2a79f2b8ebf001dc73073b?hp=deb40f5c576f72119cf77e575d4cc068c12e66cf Slightly improve error message. --- diff --git a/buildtools/Cmake/Scripts/generate_memcheck_tests.pl b/buildtools/Cmake/Scripts/generate_memcheck_tests.pl index 3f7652f8b5..9b5a55ff0c 100755 --- a/buildtools/Cmake/Scripts/generate_memcheck_tests.pl +++ b/buildtools/Cmake/Scripts/generate_memcheck_tests.pl @@ -8,7 +8,7 @@ if ( $#ARGV != 1 ) { } my ($proj_dir) = $ARGV[0]; -open MAKETEST, $ARGV[1] or die "Unable to open $ARGV[1]. $!\n"; +open MAKETEST, $ARGV[1] or die "Unable to open file: \"$ARGV[1]\". $!\n"; sub var_subst { my ($text, $name, $value) = @_; @@ -96,7 +96,7 @@ while ( defined( $line = ) ) { my ($count) = 0; my ($count_first) = 0; my ($count_second) = 0; - open TESH_FILE, $tesh_file or die "Unable to open $tesh_file $!\n"; + open TESH_FILE, $tesh_file or die "Unable to open tesh file: \"$tesh_file\". $!\n"; my ($input) = ""; my ($l); while ( defined( $l = ) ) {