From 385e026fd01f94263f2a79f2b8ebf001dc73073b Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 9 Jul 2013 11:24:53 +0200 Subject: [PATCH] Slightly improve error message. --- buildtools/Cmake/Scripts/generate_memcheck_tests.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = ) ) { -- 2.20.1