diff --git a/src/Main/Controllers/IndexController.php b/src/Main/Controllers/IndexController.php index e6b387c..9b231df 100644 --- a/src/Main/Controllers/IndexController.php +++ b/src/Main/Controllers/IndexController.php @@ -1,12 +1,11 @@ template()->setSubtemplate("main", "/main/index.tpl", [ "date" => (new \DateTime())->format('Y-m-d H:i:s') ]); - return $this->render(); } - catch(ServiceException $exception){} - return true; + catch(\Throwable $e){$error = $this->checkError($e);} + return $this->render(); } - } \ No newline at end of file diff --git a/templates/main/errpage.tpl b/templates/error/errpage.tpl similarity index 100% rename from templates/main/errpage.tpl rename to templates/error/errpage.tpl