20240423#2

This commit is contained in:
User
2024-04-23 05:16:53 +03:00
parent 009832a046
commit 8ef1287567

View File

@@ -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");
}
}