Browse Source

If DEBUG - send exception as HTTP 500

master
Anton Terekhov 13 years ago
parent
commit
4dcbf284cc
  1. 3
      app/FrontController.php

3
app/FrontController.php

@ -121,6 +121,9 @@ class FrontController
return (!DEBUG) ? $html : Profiler::getInstance()->end($html);
} catch(Exception $e) {
if (DEBUG == true) {
if (!headers_sent()) {
header('HTTP/1.0 500 Internal Server Error');
}
return ErrorHandler::showDebug($e);
}
$layout = new ErrorLayout();

Loading…
Cancel
Save