mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
using HTTP status 500 for exceptions, to ease detection of errors with externals tools
This commit is contained in:
parent
220650b53a
commit
a29b69edae
@ -1580,6 +1580,7 @@ function egw_exception_handler(Exception $e)
|
|||||||
// regular GUI exception
|
// regular GUI exception
|
||||||
if (!isset($GLOBALS['egw_info']['flags']['no_exception_handler']))
|
if (!isset($GLOBALS['egw_info']['flags']['no_exception_handler']))
|
||||||
{
|
{
|
||||||
|
header('HTTP/1.1 500 '.$headline);
|
||||||
$message = '<h3>'.html::htmlspecialchars($headline)."</h3>\n".
|
$message = '<h3>'.html::htmlspecialchars($headline)."</h3>\n".
|
||||||
'<pre><b>'.html::htmlspecialchars($e->getMessage())."</b>\n\n";
|
'<pre><b>'.html::htmlspecialchars($e->getMessage())."</b>\n\n";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user