summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-11-15 19:20:32 +0100
committerRichard Levitte <levitte@openssl.org>2020-11-17 23:12:02 +0100
commitbf57cab74b6d64f9d5bb3de8a6c77601ce208b74 (patch)
tree02261bf13e5655e65ed80b5220cdf2f4702f17e9 /util
parentc7d32b6ba520461103015022d8b4095573ca9691 (diff)
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')
-rwxr-xr-xutil/find-doc-nits3
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, $!";