From cf7731abcb893d90a1371ca4383c5194df4fa509 Mon Sep 17 00:00:00 2001 From: demn98 <79911094+demn98@users.noreply.github.com> Date: Tue, 14 Jan 2025 18:43:16 +0300 Subject: [PATCH] Update errors.md --- errors.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/errors.md b/errors.md index 8f88b8fa..a50eefb8 100644 --- a/errors.md +++ b/errors.md @@ -116,7 +116,7 @@ git: 37a8b499fc099ea49dd232d64c6cc4fd3f7ad7f7 Теперь, когда функция `report` вызывается с тем же экземпляром исключения, будет сообщено только первое вызов: ```php -$original = new RuntimeException('Whoops!'); +$original = new RuntimeException('Упс!'); report($original); // сообщено @@ -208,7 +208,7 @@ class PodcastProcessingException extends Exception implements ShouldntReport $exceptions->render(function (NotFoundHttpException $e, Request $request) { if ($request->is('api/*')) { return response()->json([ - 'message' => 'Record not found.' + 'message' => 'Запись не найдена.' ], 404); } }); @@ -243,7 +243,7 @@ class PodcastProcessingException extends Exception implements ShouldntReport $exceptions->respond(function (Response $response) { if ($response->getStatusCode() === 419) { return back()->with([ - 'message' => 'The page expired, please try again.', + 'message' => 'Срок действия страницы истек, попробуйте еще раз.', ]); }