Skip to content

Commit

Permalink
buildtoc: Add error check
Browse files Browse the repository at this point in the history
If something goes wrong, this wouldn't have known it
  • Loading branch information
khwilliamson authored and jkeenan committed Nov 5, 2022
1 parent a0a1566 commit b65a15b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pod/buildtoc
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ sub podset {
unhead1();
$OUT .= "\n\n=head2 ";
$_ = <$fh>;
last unless defined $_;
# Remove svn keyword expansions from the Perl FAQ
s/ \(\$Revision: \d+ \$\)//g;
if ( /^\s*\Q$pod\E\b/ ) {
Expand Down

0 comments on commit b65a15b

Please sign in to comment.