aboutsummaryrefslogtreecommitdiffstats
path: root/MainApp.php
diff options
context:
space:
mode:
Diffstat (limited to 'MainApp.php')
-rw-r--r--MainApp.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/MainApp.php b/MainApp.php
index ac58db5..759a522 100644
--- a/MainApp.php
+++ b/MainApp.php
@@ -142,9 +142,10 @@ class MainApp
static function error($msg)
{
$err = array('error' => $msg);
+ header('HTTP/1.0 500 Internal Server Error');
// send it to the browser
- self::json($err);
- trigger_error($msg, E_USER_NOTICE);
+ //self::json($err);
+ //trigger_error($msg, E_USER_NOTICE);
// and log it locally
self::log($msg);
}