diff options
author | Richard Levitte <levitte@openssl.org> | 2020-11-15 19:20:32 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-11-17 23:12:02 +0100 |
commit | bf57cab74b6d64f9d5bb3de8a6c77601ce208b74 (patch) | |
tree | 02261bf13e5655e65ed80b5220cdf2f4702f17e9 /util/find-doc-nits | |
parent | util/mkrc.pl: Make sure FILEVERSION and PRODUCTVERSION have four numbers (diff) | |
download | openssl-bf57cab74b6d64f9d5bb3de8a6c77601ce208b74.tar.xz openssl-bf57cab74b6d64f9d5bb3de8a6c77601ce208b74.zip |
util/find-doc-nits: check podchecker() return value
From the Pod::Checker manual:
> RETURN VALUE
> podchecker returns the number of POD syntax errors found or
> -1 if there were no POD commands at all found in the file.
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/13416)
Diffstat (limited to 'util/find-doc-nits')
-rwxr-xr-x | util/find-doc-nits | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/find-doc-nits b/util/find-doc-nits index a581adfa35..c311d792f2 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -778,7 +778,8 @@ sub check { open my $OUT, '>', $temp or die "Can't open $temp, $!"; - podchecker($filename, $OUT); + err($id, "POD errors") + if podchecker($filename, $OUT) != 0; close $OUT; open $OUT, '<', $temp or die "Can't read $temp, $!"; |