diff --git a/application/src/Controllers/AbstractPageController.php b/application/src/Controllers/AbstractPageController.php index 2865097..c9e86dc 100644 --- a/application/src/Controllers/AbstractPageController.php +++ b/application/src/Controllers/AbstractPageController.php @@ -28,8 +28,8 @@ abstract class AbstractPageController extends AbstractController { * @return string */ public function checkError(Throwable $e) : string { - if($e instanceof DTOException || $e instanceof ServiceException || $e instanceof RepositoryException) return $e->getMessage(); ($e instanceof Exception) ? $this->logException($e) : $this->logError($e); + if($e instanceof DTOException || $e instanceof ServiceException) return $e->getMessage(); return "Ошибка. Дата и время: ".date("d-m-Y H:i:s"); } } \ No newline at end of file