summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2013-11-13 16:48:50 +0100
committerUrban Müller2013-11-13 16:48:50 +0100
commitc6769fa9fb25b52ea43bf58f91334b8ee1ed5918 (patch)
tree70d1ec94f3069bfb9906d05c30c70484a6c3aea7
parentf462a52db751268f2591b9ecf27d0cc60a8e5fc3 (diff)
downloaditools-c6769fa9fb25b52ea43bf58f91334b8ee1ed5918.tar.gz
itools-c6769fa9fb25b52ea43bf58f91334b8ee1ed5918.tar.bz2
itools-c6769fa9fb25b52ea43bf58f91334b8ee1ed5918.zip
return 500 server error for fatal (so ultraproxy may react)
-rw-r--r--it.class2
1 files changed, 2 insertions, 0 deletions
diff --git a/it.class b/it.class
index 509ec3d..7398fa3 100644
--- a/it.class
+++ b/it.class
@@ -248,6 +248,8 @@ static function fatal($title='', $body='', $to='')
$p = is_array($title) ? $title : array('title' => $title, 'body' => $body, 'to' => $to);
$p['backtraceskip']++;
it::error($p);
+ if ($_SERVER['REMOTE_ADDR'])
+ header("HTTP/1.0 500 Internal Server Error");
exit(1);
}