diff options
author | MaZderMind | 2016-12-10 18:23:22 +0100 |
---|---|---|
committer | MaZderMind | 2016-12-10 18:26:34 +0100 |
commit | d0a891dcc4f261300616883aab384bd93f9f487c (patch) | |
tree | 591cabcfcf918482058c275c3f356f885e524629 /index.php | |
parent | 34fd28abd6a4da827e1d3d80b71308d7e2a36a28 (diff) |
aways print a stack-trace
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -140,7 +140,16 @@ try { catch(Exception $e) { ob_clean(); - require('view/500.php'); + try { + require('view/500.php'); + exit; + } + catch(Exception $e) { + header("HTTP/1.1 500 Internal Server Error"); + header("Content-Type: text/plain"); + print_r($e); + exit; + } } |