From 829fe6593c8099a6179e78458fc4ed3fc921996f Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 13 Feb 2003 12:31:25 +0000 Subject: die if getAndSaveFile failed, so that it will be easier to debug if we have this problem.. --- perl-install/install_any.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index af380f3e7..e6552307f 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -137,7 +137,7 @@ sub getAndSaveFile { my $f = ref($file) ? $file : getFile($file) or return; open(my $F, ">$local") or return; local $_; - while (<$f>) { syswrite $F, $_ } + while (<$f>) { syswrite($F, $_) or die("getAndSaveFile: $!") } 1; } -- cgit v1.2.1