Skip to content

Commit

Permalink
Add failure reason when no node can be found
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Nov 8, 2023
1 parent 9805182 commit 2dba200
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Checks/Meta/TitleLengthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public function validateContent(Crawler $crawler): bool
$node = $crawler->filterXPath('//title')->getNode(0);

if (! $node) {
$this->failureReason = __('failed.content.no_title');

return false;
}

Expand Down

0 comments on commit 2dba200

Please sign in to comment.