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:44:03 +00:00
parent 220650b53a
commit a29b69edae

View File

@ -1580,6 +1580,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";