From 304e9a75fb537c281043ee2eaf4c5723ca741694 Mon Sep 17 00:00:00 2001 From: Ahmet Bora Date: Tue, 9 Jan 2024 12:46:46 +0300 Subject: [PATCH] Code reviews --- config/tags.php | 4 ++-- tests/Text/KirbyTagsTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/tags.php b/config/tags.php index d2de99edef..5e340aac71 100644 --- a/config/tags.php +++ b/config/tags.php @@ -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(); diff --git a/tests/Text/KirbyTagsTest.php b/tests/Text/KirbyTagsTest.php index f322d30fb2..f68abfbdba 100644 --- a/tests/Text/KirbyTagsTest.php +++ b/tests/Text/KirbyTagsTest.php @@ -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)'); } @@ -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)'); }