Skip to content

Commit

Permalink
Code reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
afbora committed Jan 9, 2024
1 parent 0a32233 commit 304e9a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@
if ($tag->value === null) {
if ($tag->kirby()->option('debug', false) === true) {
if (empty($tag->text) === false) {
throw new NotFoundException('The linked page is not found for the link text "' . $tag->text . '"');
throw new NotFoundException('The linked page cannot be found for the link text "' . $tag->text . '"');
} else {
throw new NotFoundException('The linked page is not found');
throw new NotFoundException('The linked page cannot be found');
}
} else {
$tag->value = $tag->kirby()->site()->errorPageId();
Expand Down
4 changes: 2 additions & 2 deletions tests/Text/KirbyTagsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ public function testLinkWithUuidDebug()
]);

$this->expectException(NotFoundException::class);
$this->expectExceptionMessage('The linked page is not found');
$this->expectExceptionMessage('The linked page cannot be found');

$app->kirbytags('(link: page://not-exists)');
}
Expand Down Expand Up @@ -680,7 +680,7 @@ public function testLinkWithUuidDebugText()
]);

$this->expectException(NotFoundException::class);
$this->expectExceptionMessage('The linked page is not found for the link text "click here"');
$this->expectExceptionMessage('The linked page cannot be found for the link text "click here"');

$app->kirbytags('(link: page://not-exists text: click here)');
}
Expand Down

0 comments on commit 304e9a7

Please sign in to comment.