From 465b9b55351dd5c2d3569943b3c266dbdf65bbe5 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Wed, 30 Jan 2013 17:07:41 +0000 Subject: [PATCH] Complain in a slightly more helpful way if we can't open a file. --- build/check_certificate.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/check_certificate.pl b/build/check_certificate.pl index eab84b2d..e59e3b2f 100755 --- a/build/check_certificate.pl +++ b/build/check_certificate.pl @@ -15,7 +15,7 @@ while (@ARGV) { $fn = shift @ARGV; - open(IN, $fn); + open(IN, $fn) || die "could not open $fn: $!"; print PIPE "Entity: $fn keyname (none)\n"; while () { print PIPE $_; @@ -23,4 +23,4 @@ close IN; } -close PIPE; \ No newline at end of file +close PIPE;