Skip to content

Commit

Permalink
Complain in a slightly more helpful way if we can't open a file.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jan 30, 2013
1 parent e3159d3 commit 465b9b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/check_certificate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

while (@ARGV) {
$fn = shift @ARGV;
open(IN, $fn);
open(IN, $fn) || die "could not open $fn: $!";
print PIPE "Entity: $fn keyname (none)\n";
while (<IN>) {
print PIPE $_;
}
close IN;
}

close PIPE;
close PIPE;

0 comments on commit 465b9b5

Please sign in to comment.