From: Richard Levitte Date: Sun, 15 Nov 2020 18:20:32 +0000 (+0100) Subject: util/find-doc-nits: check podchecker() return value X-Git-Tag: openssl-3.0.0-alpha9~92 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=bf57cab74b6d64f9d5bb3de8a6c77601ce208b74 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 (Merged from https://github.com/openssl/openssl/pull/13416) --- 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, $!";