Skip to content

Update errors.md #405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 11.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ git: 37a8b499fc099ea49dd232d64c6cc4fd3f7ad7f7
Теперь, когда функция `report` вызывается с тем же экземпляром исключения, будет сообщено только первое вызов:

```php
$original = new RuntimeException('Whoops!');
$original = new RuntimeException('Упс!');

report($original); // сообщено

Expand Down Expand Up @@ -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);
}
});
Expand Down Expand Up @@ -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' => 'Срок действия страницы истек, попробуйте еще раз.',
]);
}

Expand Down