From: Nigel Metheringham Date: Fri, 24 Sep 2010 15:59:26 +0000 (+0100) Subject: Better error message on die X-Git-Tag: exim-4_89_1~86 X-Git-Url: https://git.exim.org/exim-website.git/commitdiff_plain/8caff1d1de8a85ad6e0c07d496b26382b831e212 Better error message on die --- diff --git a/script/gen.pl b/script/gen.pl index eb61e05..3c1137b 100755 --- a/script/gen.pl +++ b/script/gen.pl @@ -313,7 +313,7 @@ sub transform { mkdirp( ( $out_path =~ /^(.+)\/.+$/ )[0] ); ## Write out the document - open my $out, '>', $out_path or die $!; + open my $out, '>', $out_path or die "Unable to write $out_path - $!"; print $out $stylesheet->output_as_bytes($doc); close $out; }