using HTTP status 500 for exceptions, to ease detection of errors with externals tools

This commit is contained in:
Ralf Becker 2013-03-29 09:45:49 +00:00
parent 533cb9ec64
commit 464ad25139

View File

@ -1579,6 +1579,7 @@ function egw_exception_handler(Exception $e)
// regular GUI exception
if (!isset($GLOBALS['egw_info']['flags']['no_exception_handler']))
{
header('HTTP/1.1 500 '.$headline);
$message = '<h3>'.html::htmlspecialchars($headline)."</h3>\n".
'<pre><b>'.html::htmlspecialchars($e->getMessage())."</b>\n\n";