diff options
author | Matthew Horsfall <wolfsage@gmail.com> | 2017-08-20 19:28:29 -0400 |
---|---|---|
committer | Matthew Horsfall <wolfsage@gmail.com> | 2017-08-20 19:28:29 -0400 |
commit | 5c780defa5eed869f1da17d4b8f4da88606ed674 (patch) | |
tree | 21375af01573b3beeb44c9158cd127b025003a74 | |
parent | e792e8c06267200185d8d7239eff4887535aa1ac (diff) | |
download | perl-5c780defa5eed869f1da17d4b8f4da88606ed674.tar.gz |
make-rmg-checklist - Be more helpful about file open/close errors
-rw-r--r-- | Porting/make-rmg-checklist | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Porting/make-rmg-checklist b/Porting/make-rmg-checklist index e4a810d36f..8b11ed02fc 100644 --- a/Porting/make-rmg-checklist +++ b/Porting/make-rmg-checklist @@ -6,13 +6,13 @@ use Getopt::Long qw< :config no_ignore_case >; sub pod { my $filename = shift; - open my $fh, '<', 'Porting/release_managers_guide.pod' - or die "Cannot open file: $!\n"; + open my $fh, '<', $filename + or die "Cannot open file ($filename): $!\n"; my @lines = <$fh>; close $fh - or die "Cannot close file: $!\n"; + or die "Cannot close file ($filename): $!\n"; return \@lines; } @@ -140,7 +140,7 @@ if ($html) { my $type = _type_from_version($version); -chomp( my @pod_lines = @{ pod() } ); +chomp( my @pod_lines = @{ pod('Porting/release_managers_guide.pod') } ); my ( @items, $current_element, @leading_attrs ); my $skip_headers = qr/^=encoding/xms; |