diff --git a/scripts/content-modules/adjust-pages.pl b/scripts/content-modules/adjust-pages.pl index 5115926ecded..ac3aad9cf519 100755 --- a/scripts/content-modules/adjust-pages.pl +++ b/scripts/content-modules/adjust-pages.pl @@ -155,6 +155,9 @@ () # printf STDOUT "$ARGV Got:$lineNum: $_" if $gD; if ($file ne $ARGV) { + # Did the previous file not have a title? + warn "WARN: $file: no level 1 heading found, so no page will be generated" + if $file && $lineNum && ! $title; $file = $ARGV; $frontMatterFromFile = ''; $title = '';