From f9267417fa139322069dab2de06918d095cef449 Mon Sep 17 00:00:00 2001 From: Chris White Date: Sat, 10 Dec 2022 14:12:04 -0500 Subject: [PATCH] find-file-doc-comments.pl: die on non-existent input files [minor] --- find-file-doc-comments.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/find-file-doc-comments.pl b/find-file-doc-comments.pl index e14028f..bb46662 100755 --- a/find-file-doc-comments.pl +++ b/find-file-doc-comments.pl @@ -32,6 +32,7 @@ exit main(@ARGV); sub main { die "Need a filename" unless @_; my $filename = shift; + die "Could not read $filename" unless -r $filename; say "Processing file $filename" if $VERBOSE; # Fatalize all warnings, and log which file triggered the warning.