find-file-doc-comments.pl: die on non-existent input files [minor]

This commit is contained in:
Chris White 2022-12-10 14:12:04 -05:00 committed by Théo Lebrun
parent 2cf83f5f7b
commit f9267417fa

View file

@ -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.