summaryrefslogtreecommitdiffstats
path: root/system/post
diff options
context:
space:
mode:
Diffstat (limited to 'system/post')
-rw-r--r--system/post/list.php2
-rw-r--r--system/post/main.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/system/post/list.php b/system/post/list.php
index 908f7b8..f2edd0b 100644
--- a/system/post/list.php
+++ b/system/post/list.php
@@ -60,6 +60,6 @@ try {
# CATCH: Template\Exception
#===============================================================================
catch(Template\Exception $Exception) {
- $Exception->defaultHandler();
+ Application::exit($Exception->getMessage());
}
?> \ No newline at end of file
diff --git a/system/post/main.php b/system/post/main.php
index 0b69023..46937f3 100644
--- a/system/post/main.php
+++ b/system/post/main.php
@@ -59,7 +59,7 @@ try {
# CATCH: Template\Exception
#===============================================================================
catch(Template\Exception $Exception) {
- $Exception->defaultHandler();
+ Application::exit($Exception->getMessage());
}
}
@@ -86,5 +86,5 @@ catch(Post\Exception $Exception) {
# CATCH: User\Exception
#===============================================================================
catch(User\Exception $Exception) {
- $Exception->defaultHandler();
+ Application::exit($Exception->getMessage());
} \ No newline at end of file