From 4af1c59db3508e1e5089fd958500e85c6931b361 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 12 Nov 2010 15:18:55 +0000 Subject: [PATCH] die if cannot open output or exception files Signed-off-by: Galen Charlton --- fingerprinter | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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"; -- 1.7.2.5