From: Galen Charlton Date: Fri, 12 Nov 2010 15:18:55 +0000 (+0000) Subject: die if cannot open output or exception files X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=4af1c59db3508e1e5089fd958500e85c6931b361 die if cannot open output or exception files Signed-off-by: Galen Charlton --- diff --git a/fingerprinter b/fingerprinter index 55b5f33..4318340 100755 --- a/fingerprinter +++ b/fingerprinter @@ -16,8 +16,8 @@ $| = 1; initialize($conf); -open OF, '>', $conf->{output}; -open XF, '>', $conf->{exception}; +open OF, '>', $conf->{output} or die "$0: cannot open output file $conf->{output}: $!\n"; +open XF, '>', $conf->{exception} or die "$0: cannot open exception file $conf->{output}: $!\n"; for my $file (@ARGV) { print XF "Processing $file\n";