Skip to content

Commit

Permalink
fixed index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Bosun18 committed Dec 8, 2023
1 parent 93d4be9 commit 4057185
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,12 @@
$this->get('flash')->addMessage('success', 'Страница успешно проверена');
} catch (ClientException $e) {
$statusCode = $e->getResponse()->getStatusCode();
$result = $e->getResponse();
$this->get('flash')->addMessage('error', 'Ошибка ' .
$statusCode . ' при проверке страницы (доступ к странице запрещен или ограничен)');
return $response->withRedirect($router->urlFor('show', ['id' => $urlId]));
$statusCode . ' Проверка была выполнена успешно, но сервер ответил с ошибкой');
// $this->get('flash')->addMessage('error', 'Ошибка ' .
// $statusCode . ' при проверке страницы (доступ к странице запрещен или ограничен)');
// return $response->withRedirect($router->urlFor('show', ['id' => $urlId]));
} catch (ServerException $e) {
$statusCode = $e->getResponse()->getStatusCode();
$this->get('flash')->addMessage('error', 'Ошибка ' .
Expand Down

0 comments on commit 4057185

Please sign in to comment.